[Serdev] ENUM enhancements

Juha Heinanen jh at tutpro.com
Tue Jun 21 15:09:39 UTC 2005


Klaus Darilion writes:

 > My code works, but it was not that easy as I thought (probably due to my 
 > weak C skills). I could not find any function that searches a character 
 > in a string without terminating \0. Thus I copied the str into a \0 
 > terminated string first. Also it bloated up the code.

write your own function that does the search.  copying should always be
avoided if at all possible. 

-- juha




More information about the Serdev mailing list