|
Algorithms_in_C
1.0.0
Set of algorithms implemented in C.
|
Recoding the original atoi function in stdlib.h. More...
#include <assert.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Functions | |
| int | c_atoi (const char *str) |
| the function take a string and return an integer More... | |
| void | test_c_atoi () |
| test the function implementation | |
| int | main (int argc, char **argv) |
| the main function take one argument of type char* example : . More... | |
Recoding the original atoi function in stdlib.h.
| int c_atoi | ( | const char * | str | ) |
the function take a string and return an integer
| [out] | str | pointer to a char address |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
the main function take one argument of type char* example : .
/program 123