Posted by caiobm on Sun 1 Mar 05:34 (modification of post by view diff)
report abuse | download | new post
- #include <io.h>
- #include <fcntl.h>
- main() {
- int ind = creat("teste.txt", O_BINARY);
- char* buf = "Olá, como esta\n\0";
- int bufint[3];
- write(ind, buf,18);
- bufint[0] = 1;
- bufint[1] = 1111;
- bufint[2] = 12;
- write(ind, bufint,3);
- close(ind);
- }
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.