
Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 110 -
7. General utilities ( stdlib.h )
-------------------------------------------------------------------
Name Function
-------------------------------------------------------------------
7.1 atoi Convert string to int value.
7.2 atol Convert string to long value.
7.3 strtol Convert string to long value.
7.4 strtoul Convert string to unsigned long value.
7.5 rand Generate pseudo-random number.
7.6 srand Seed pseudo-random number generator.
7.7 calloc Allocate memory block initialized by 0.
7.8 free Free memory block.
7.9 malloc Allocate memory block.
7.10 realloc Reallocate memory block.
7.11 bsearch Perform binary search.
7.12 qsort Perform quick sort.
7.13 abs Get absolute value.
7.14 div Get quotient and remainder.
7.15 labs Get absolute value.
7.16 ldiv Get quotient and remainder.
7.17 atof Convert string to double value.
7.18 strtod Convert string to double value.
------------------------------------------------------------------
8. String handling ( string.h )
-------------------------------------------------------------------
Name Function
-------------------------------------------------------------------
8.1 memcpy Copy a memory block.
8.2 memmove Move a memory block.
8.3 strcpy Copy a string.
8.4 strncpy Copy a string.
8.5 strcat Concatenate a string.
8.6 strncat Concatenate a string.
8.7 memcmp Compare two memory blocks.
8.8 strcmp Compare two strings.
8.9 strncmp Compare two strings.
8.10 memchr Find a character in a memory block.
8.11 strchr Find a character in a string.
8.12 strcspn Get string length which doesn't include a
character.
8.13 strpbrk Find a character position in a string.
8.14 strrchr Find the last character in a string.
8.15 strspn Get string length composed by specified
character.
8.16 strstr Find a string in a string.
8.17 strtok Get a token.
8.18 memset Fill data in a memory block.
8.19 strlen Get string length.