Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Where's the C library function for "sort the N-byte records in the file named 'foo' which is too large to fit into RAM"?


Perhaps not in libc but on my freebsd box /usr/src/gnu/usr.bin/sort/sort.c delivers the goods if foo has newlines.


system('sort filename');




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: