aq\0aq 和 \0 有什么区别?

发布于 2025-01-17 21:42:29 字数 281 浏览 1 评论 0原文

我认为标题描述了一切,但故事是
我正在重新实现 bzero 在C中的功能,并且 那是我遇到此aq \ 0aq
的地方 通过某些搜索,我了解到它具有与\ 0(这是确定字符串结束的零字符)
相同的角色 但是我很好奇是否有区别,aq是什么?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱的那么颓废 2025-01-24 21:42:29

aq是什么?

这是将 groff(手册页,请参阅 man 7 groff)转换为 html 后留下的工件。它应该只是'\0'。请参阅man bzero

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

通过将零(包含 \(aq\e0\(aq) 的字节)写入该区域。

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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文