Fix file.asm return value comments
This commit is contained in:
6
file.asm
6
file.asm
@ -19,7 +19,7 @@ section .text
|
||||
global fwrite
|
||||
|
||||
;----- fopen(const char *filename, const char *mode) -----;
|
||||
; return value: pointer to file or NULL if file failed to open
|
||||
; return value: pointer to file or value < 0 (neg errno) if file failed to open
|
||||
; ┌─────────────┬───────────────────────────────┐
|
||||
; │fopen() mode │ open() flags │
|
||||
; ├─────────────┼───────────────────────────────┤
|
||||
@ -81,7 +81,7 @@ fopen:
|
||||
leave
|
||||
ret
|
||||
;----- fclose(FILE* fp) -----;
|
||||
; return value: 0 on success, below 0 otherwise
|
||||
; return value: 0 on success, below 0 otherwise (neg errno)
|
||||
fclose:
|
||||
push rbp
|
||||
mov rbp, rsp
|
||||
@ -93,7 +93,7 @@ fclose:
|
||||
ret
|
||||
;----- fwrite(FILE* fp, char* str) -----;
|
||||
; writes a string to opened file
|
||||
; return value: 0 on success, below 0 otherwise
|
||||
; return value: 0 on success, below 0 otherwise (neg errno)
|
||||
fwrite:
|
||||
push rbp
|
||||
mov rbp, rsp
|
||||
|
Reference in New Issue
Block a user