calloc for safer memory usage
c: using builtin strtol()