14 lines
242 B
C
14 lines
242 B
C
#include "strTools.h"
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <errno.h>
|
|
|
|
int char_to_int(char *str)
|
|
{
|
|
int result;
|
|
char *tmp;
|
|
result = strtol(str, &tmp, 10);
|
|
printf("%i", errno);
|
|
return result;
|
|
} |