networking · beginner · ~15 min
Distinguish abstract from filesystem sockets.
In our notation an abstract-namespace unix socket starts with '@'. Implement int is_abstract(const char *path) returning 1 if path begins with '@', else 0.
int is_abstract(const char *path) {
/* TODO */
return 0;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.