C miscellaneous operations
|
C miscellaneous operations are a group of functions in the standard library of the C programming language implementing various functionality, such as conversions from string to numeric types, pseudo-random number generation, search and sorting. Overview of functions ; Conversions from string to arithmetic values *<tt>atof</tt> - C/C++ - converts a string to a floating-point value *<tt>atoi</tt>, <tt>atol</tt>, <tt>atoll</tt>(C99/C++11) - C/C++ - converts a string to an integer *<tt>strtof</tt>, <tt>strtod</tt>, <tt>strtold</tt> - C/C++ - converts a string to a floating-point value *<tt>strtol</tt>, <tt>strtoll</tt> - C/C++ - converts a string to a signed integer *<tt>strtoul</tt>, <tt>strtoull</tt> - C/C++ - converts a string to an unsigned integer ; Pseudo-random numbers *<tt>rand</tt> - C/C++ - generates a pseudo-random number *<tt>srand</tt> - C/C++ - initializes a pseudo-random number generator ; Sorting and search *<tt>qsort</tt> - C/C++ - sorts a range of elements of arbitrary type *<tt>bsearch</tt> - C/C++ - searches a sorted range for an elements of arbitrary type
|