Re: independent string functions
- From: Ben Bacarisse <ben.usenet@xxxxxxxxx>
- Date: Fri, 20 Jun 2008 14:21:08 +0100
Cartoper <cartoper@xxxxxxxxx> writes:
There is one little static C library to manage the serial number and
unlock key for my application. Today it is compiled with Microsoft
VC6 and linked into both VC6 modules and VS2005 modules. It is not a
lot of code, but obviously it is very important code that is used all
over:
VS2005: used in a C++/CLI module for .Net
VS2005: Apache module
VC6: DLL that is called by the installation program
There are two things I need to do:
1: Upgrade the VC6 module to VS2005.
2: Prepare this static library to go cross platform.
As it stands now the ONLY functions the library is using from the CRT
are string manipulation functions, the library does not allocate any
memory right now and is pure C. I am looking for an alternative to
the standard string functions, something I can simply include in this
library so that it is 100% self contains and won’t run into issues
when I compile it with VS2005 (later VS2008) nor with the Linux and
Mac C/C++ compilers.
I must be missing something obvious, but why can't you just keep using
C's string functions? Your library is in C, so obviously you can link
C code into all the desired targets. I can't see why you can't also
just link against the C library.
Anyway, if you list the ones that the library uses, I am sure people
here can post versions written in portable C. The only hard ones are
the scanf and printf family. You might want to say what formats you
actually use since that can make a difference as to how hard a
re-write it is.
Obviously, there are open-source versions available, so you'll also
have to say what licences are acceptable.
--
Ben.
.
- Follow-Ups:
- Re: independent string functions
- From: Cartoper
- Re: independent string functions
- References:
- independent string functions
- From: Cartoper
- independent string functions
- Prev by Date: Re: independent string functions
- Next by Date: Re: Interesting problem dynamically forming func names ??
- Previous by thread: Re: independent string functions
- Next by thread: Re: independent string functions
- Index(es):
Relevant Pages
|
Loading