pintos/src/lib/stdlib.h File Reference

#include <stddef.h>

Go to the source code of this file.

Functions

int atoi (const char *)
void qsort (void *array, size_t cnt, size_t size, int(*compare)(const void *, const void *))
void * bsearch (const void *key, const void *array, size_t cnt, size_t size, int(*compare)(const void *, const void *))
void sort (void *array, size_t cnt, size_t size, int(*compare)(const void *, const void *, void *aux), void *aux)
void * binary_search (const void *key, const void *array, size_t cnt, size_t size, int(*compare)(const void *, const void *, void *aux), void *aux)


Function Documentation

int atoi ( const char *   ) 

Definition at line 11 of file stdlib.c.

References ASSERT, isdigit(), isspace(), and NULL.

Referenced by expand(), main(), and parse_options().

void* binary_search ( const void *  key,
const void *  array,
size_t  cnt,
size_t  size,
int(*)(const void *, const void *, void *aux)  compare,
void *  aux 
)

Definition at line 186 of file stdlib.c.

References NULL.

Referenced by bsearch().

void* bsearch ( const void *  key,
const void *  array,
size_t  cnt,
size_t  size,
int(*)(const void *, const void *)  compare 
)

Definition at line 167 of file stdlib.c.

References binary_search(), and compare_thunk().

Referenced by verify_bsearch().

void qsort ( void *  array,
size_t  cnt,
size_t  size,
int(*)(const void *, const void *)  compare 
)

Definition at line 59 of file stdlib.c.

References compare_thunk(), and sort().

Referenced by test().

void sort ( void *  array,
size_t  cnt,
size_t  size,
int(*)(const void *, const void *, void *aux)  compare,
void *  aux 
)

Definition at line 133 of file stdlib.c.

References ASSERT, do_swap(), heapify(), and NULL.

Referenced by qsort().


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6