More info on the
write() syscall in C (this is not required for NASM programming: this is for your information only.)
Name: |
System call or function: System call | Links: Online Manual | Course Packet |
| What it does: writes data from an array into a file, and returns the # of written bytes. | ||
What libraries you must include: |
||
Syntax: |
||
Description of arguments: : file descriptor of a file that was open for writing |
||
What type it returns: |
On success: A non-negative integer indicating how many bytes we wrote. This number will be equal to or smaller than , and could also be (in cases of some special files.) |
|
On failure: |
||
Quick example: |
||