1234
sscanf(str, "%d %[^/]/%d %d:%d:%d %s", &pid, tty, &n, &hr, &min, &sec, ccmd); printf("pid = %d, tty = %s, n = %d, hr = %d, min = %d, sec = %d, ccmd = %s\n", pid, tty, n, hr, min, sec, ccmd);