OAR

RTEMS GNU Tools On-Line Library


Stdlib

prev UP NEXT Bookshelf

Chapter 1: Standard Utility Functions (`stdlib.h')

This chapter groups utility functions useful in a variety of programs. The corresponding declarations are in the header file `stdlib.h'.

  • abort Abnormal termination of a program
  • abs Integer absolute value (magnitude)
  • assert Macro for Debugging Diagnostics
  • atexit Request execution of functions at program exit
  • atof String to double or float
  • atoi String to integer
  • bsearch Binary search
  • calloc Allocate space for arrays
  • div Divide two integers
  • ecvtbuf Double or float to string of digits
  • ecvt Double or float to string of digits (malloc result)
  • __env_lock Lock environment list for getenv and setenv
  • gvcvt Format double or float as string
  • exit End program execution
  • getenv Look up environment variable
  • labs Long integer absolute value (magnitude)
  • ldiv Divide two long integers
  • malloc Allocate and manage memory (malloc, realloc, free)
  • mallinfo Get information about allocated memory
  • __malloc_lock Lock memory pool for malloc and free
  • mbstowcs Minimal multibyte string to wide string converter
  • mblen Minimal multibyte length
  • mbtowc Minimal multibyte to wide character converter
  • qsort Sort an array
  • rand Pseudo-random numbers
  • strtod String to double or float
  • strtol String to long
  • strtoul String to unsigned long
  • system Execute command string
  • wcstombs Minimal wide string to multibyte string converter
  • wctomb Minimal wide character to multibyte converter

  • prev UP NEXT Bookshelf

    Packaging copyright © 1988-2000 OAR Corporation
    Context copyright by each document's author. See Free Software Foundation for information.