2 ms·
Explained with comments: https://gist.github.com/782312 https://gist.github.com/782312 (edit: made clearer).
by paulitex 16y ago
Explained with comments: https://gist.github.com/782312 https://gist.github.com/782312
(edit: made clearer).
- zaius 16y agoNice. Thanks for that. The only addendum I would make is that the second parameter to open specifies to open the file as writable. Usually the constant is O_WRONLY, but it wasn't working for me in GDB.