New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct fread, fwrite, fopen return value #16

Merged
merged 2 commits into from Jul 24, 2018

Conversation

Projects
None yet
2 participants
@SegFault42
Contributor

SegFault42 commented Jul 24, 2018

correction about issue #11.

fread, fopen and fwrite must return 0 or 1 with u32 return value.

if you want to keep u32 * return value you hace to cast to (void *)1.

@SegFault42

This comment has been minimized.

Show comment
Hide comment
@SegFault42

SegFault42 Jul 24, 2018

Contributor

another commit where i corrected all warning.

-fno-builtin is for this warning : warning: conflicting types for built-in function 'fwrite' [-Wbuiltin-declaration-mismatch]

the best is simply to chose another name for all reserved function name like fwrite ....

Contributor

SegFault42 commented Jul 24, 2018

another commit where i corrected all warning.

-fno-builtin is for this warning : warning: conflicting types for built-in function 'fwrite' [-Wbuiltin-declaration-mismatch]

the best is simply to chose another name for all reserved function name like fwrite ....

@Reisyukaku Reisyukaku merged commit b099883 into Reisyukaku:master Jul 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment