16
Computer Programming / ANSI C, library for strings [strings++]
« on: October 20, 2010, 07:42:10 pm »
Actually this is my first C project of this kind,
and I hope it can be useful for someone here,
but, it's sad that you probably won't be able to use it in your calc...
Hope you enjoy!
/*
Maybe I can post a code as sample of usage
actually it's already done, just need to be translated
*/
So what it's this library for:
¤: replace the first occurrence of a char in a string [for a sub-string]
¤: replace every occurrence of a char in a string [for a sub-string]
¤: replace the first occurrence of sub-string in a string [for another sub-string]
¤: replace every occurrence of sub-string in a string [for another sub-string]
I know you could say why for if the last two can do the same of the first ones,
simply: they are MUCH FASTER than the 3rd and 4th ones.
They are listed in speed order
and I hope it can be useful for someone here,
but, it's sad that you probably won't be able to use it in your calc...
Hope you enjoy!
/*
Maybe I can post a code as sample of usage
actually it's already done, just need to be translated
*/
So what it's this library for:
¤: replace the first occurrence of a char in a string [for a sub-string]
¤: replace every occurrence of a char in a string [for a sub-string]
¤: replace the first occurrence of sub-string in a string [for another sub-string]
¤: replace every occurrence of sub-string in a string [for another sub-string]
I know you could say why for if the last two can do the same of the first ones,
simply: they are MUCH FASTER than the 3rd and 4th ones.
They are listed in speed order