Library Functions

13. Library Functions

13.1How can I convert numbers to strings?

13.2Why does strncpy not always write a '\0'?

13.5Whydo some versions oftoupper act strangely if given an upper-case letter?

13.6How can I split up astringintowhitespace-separated fields?

13.7I need some code to do regular expressionandwildcard matching.

13.8I'm trying to sort an array of strings with qsort, using strcmp as the comparison function, but it's not working.

13.9Now I'm trying to sort an array of structures,but the compileris complainingthat the function isof the wrong type for qsort.

13.10How can I sort a linked list?

13.11How can I sort more data than will fit in memory?

13.12How can I get thetime of day in a C program?

13.13How can Iconverta struct tm or a string into a time_t?

13.14How can I perform calendar manipulations?

13.15I need a random number generator.

13.16How can I get random integers in a certain range?

13.17Each time I run my program,I get the same sequence of numbers back from rand().

13.18I need a random true/false value,so I'm just taking rand() % 2, but it's alternating 0, 1, 0, 1, 0...

13.20How can I generate random numbers with anormal orGaussian distribution?

13.24I'm trying to port this old program.Why do I get ``undefined external'' errorsfor some library functions?

13.25Igeterrors due to library functions being undefinedeven though I #include the right header files.

13.26I'm still getting errors due to library functions being undefined,even though I'mrequesting the right libraries.

13.28What does it mean when the linker says that _end is undefined?


top