Sorry, didn't get what is this memset.
In the second case, do I need to create some pointer first and then initialise it during clearing?
What I do now is to loop whole of array to '\0'. But this gives something really silly when I want to know the value of the buffer content (something like...
Thanks for the link.
The link and some other sites I searched, give the idea about the codes but don't cover the programming aspect (like how to change from one to other specifically for my problem).
May be I could get some info on the 'Tampa Bay Interactive' but that link doesn't work.
Do...
Hi,
I need help on buffer cleaning.
What I mean is:
Once I fill the buffer with strcpy(buff,"xyz\r") and next time I need the buff to be empty with nothing inside it. How do I do that?
I work on LabWindows/CVI (a GUI based C environment) and I don't think it supports all C library...
Hi,
I need help on buffer cleaning.
What I mean is:
Once I fill the buffer with strcpy(buff, "xyz\r") and next time I need the buff to be empty with nothing inside it. How do I do that?
Actually, first time I need to write xyz in the buffer and next time only xy and then I need to...
What about the code for 'unvisible' characters, say 'ACK' (acknowledgment)or 'ENQ' (inquiry)? How do I get the ASCII code for these characters in C?
It is not possible to write char c = '\ACK' !!!
Suggest a method to get the ASCII value of such characters.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.