I/O functions

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Nable
Member
Member
Posts: 453
Joined: Tue Nov 08, 2011 11:35 am

Re: I/O functions

Post by Nable »

gusc wrote:I know that I'm jumping late in to the printf game, but I wanted to share my tiny writef implementation https://github.com/gusc/mbr2gpt/blob/ma ... rnel/lib.c
And after sparse checking:
https://github.com/gusc/mbr2gpt/blob/ma ... /lib.c#L72 - see, it seems that you have type mismatch, uint64 seems to be the type of return value instead of uint32.
Checking your code with at least `gcc -W -Wall' seems to be a good idea.
gusc
Member
Member
Posts: 50
Joined: Tue Feb 05, 2013 1:42 pm

Re: I/O functions

Post by gusc »

Nable wrote:
gusc wrote:I know that I'm jumping late in to the printf game, but I wanted to share my tiny writef implementation https://github.com/gusc/mbr2gpt/blob/ma ... rnel/lib.c
And after sparse checking:
https://github.com/gusc/mbr2gpt/blob/ma ... /lib.c#L72 - see, it seems that you have type mismatch, uint64 seems to be the type of return value instead of uint32.
Checking your code with at least `gcc -W -Wall' seems to be a good idea.
Yep, thanks, I'll fix it in the next push.
Post Reply