#Having trouble creating my own fgetc function

7 messages · Page 1 of 1 (latest)

toxic falconBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

fathom plinth
#

And here is my output -----------------------REAL FGETC------------------------------ baaaaabbbbbbbbbbbbbbbbbbbbbbb --------------------------------FAKE FGETC--------------------- baaaaabbbbbbbbbbbbbbbbbbbbbb���

#

I'm really not sure if I need to use read function, or if I need to user my buffer array to get chars with my already_read var

#

Any help is appreciated

#

Here is what I have to do The lbs_fgetc works just like fgetc(3), it reads a new character from the stream’s buffer. It should refill the stream’s buffer whenever it is empty. It should return the read character, otherwise it may set the error indicator and return −1.

toxic falconBOT
#

@fathom plinth

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. You can use !solved to close a post and mark it as solved.

fathom plinth
#

!solved