libuwuc/tests/c/strtol.c
2023-10-04 21:35:18 +02:00

9 lines
165 B
C

#include <stdlib.h>
#include <assert.h>
int main(void)
{
char *str = "12";
long value = strtol(str, NULL, 10);
assert((value == 12) && "value must be 12");
}