Fast Safe "C" Strings

Use these routines to make C string copying and comparing up to 20 times faster - and safer.

All Ansi C Compilers.  Tested with Borland and GNU/GCC compilers. 

Download FastStr Documentation is included.
"C" string handling is slow, and error prone.  These routines keep the current length of a string available, thus the very time consuming searching for the binary zero at the end of a string is not necessary. 
Furthermore, many a virus has been introduced because of buffer over-runs allowed by the original "C" string language design.
 
These routines operate in a similar manner to Pascal or PL/I, and hence can move and compare strings quickly.  And "Fixed" length strings are padded with blanks so that string compares are done "correctly".  Also, it is impossible (difficult?) to over-write adjacent storage as the routines check to see if the receiving length of a string is sufficent, otherwise truncation occurs, just as in PL/I,  Pascal or even 370 Assembler.


See the Original article sent to Bill Gates and IBM around 1988 here


And Microsoft's reply 1988:  MicroSoftReply
In HTML Format: Microsoft HTML Reply


And a message sent to the C Users Group in 1989 BBSMessage_1989
 
Please note:  All the software here is Copyright by Clement Clarke. Most of the software may be used free of charge for Planet Saving activities.  It cannot be used for War.  And companies making or saving money from any of the software must pay me what they think it is truthfully worth to them.   Code changes must be sent back to me or otherwise made available for others.

How does it get any better than this? 

 

    Back to Main Page   
 
Contact Us
Home