// Compile: cc -std=c23 test_7_21_stdlib.c
#include <stdlib.h>
#include <assert.h>

int main(void){
  char *end;
  long v = strtol("42", &end, 10);
  assert(v == 42 && *end == '\0');
  return 0;
}
