Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What is the difference between aq\0aq and \0?

I think the title describes everything, but the story is
I’m re-implementing the bzero function in c, and
that’s where I encountered this aq\0aq
by some searching I understood that it has the same role as \0(which is a null character to determine the end of a string)
but I’m curious if there’s any difference and what is the aq?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

what is the aq?

It’s an artifact left by converting groff (man pages, see man 7 groff) to html. It should be just '\0'. See man bzero.

https://github.com/mkerrisk/man-pages/blob/master/man3/bzero.3#L45

by writing zeros (bytes containing \(aq\e0\(aq) to that area.
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading