
224
"C" Programming Guide For Optimus S/R
4.5 Utility Functions: <stdlib.h>
4.5.1 Number Conversion
double atof (const char *s)
Convert s to double,
equivalent to strtod (s, (char **)
NULL)
int atoi (const char *s)
Convert s to integer,
equivalent to strtol (s, (char **)
NULL, 10)
int atol (const char *s)
Convert s to long,
equivalent to strtol (s, (char **)
NULL, 10)
double strtod (const char *s, char **endp)
Convert the prefix of s to double
long strtol (const char *s, char **endp, int base)
Convert the prefix of s to long
unsigned long strtoul (const char *s, char
**endp, int base)
Convert the prefix of s to
unsigned long
int rand (void)
Return a random integer from 0
to 32,767
void strand (unsigned int seed)
seed for new pseudo-random
generation
void *bsearch()
binary search
void qsort()
ascending sorts
int abs (int n)
integer absolute
long labs (long n)
long absolute
div_t div (int num, int denom)
integer division
ldiv_t div (long num, long denom)
long division
4.5.2 Storage Allocation
Not supported. Use the proprietary library routines instead.
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...