fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char *str = "1234567890";
  5. int n;
  6. sscanf(str+3, "%3d", &n);
  7. printf("%d\n", n);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
456