Nextuser port as a C program