coreutils项目中echo.c中一些行的含义

问题描述 投票:0回答:1

我正在阅读

echo.c
项目的
coreutils
的源代码。

https://github.com/coreutils/coreutils/blob/master/src/echo.c#L143

我无法理解以下的意思:

1- 在第 79 行(以及其他一些行),然后是

_
fputs (_("\nIf -e is in effect, the following sequences are recognized:\n\n"), stdout);

函数的含义

2-第116行,

!!
bool posixly_correct = !!getenv ("POSIXLY_CORRECT");

中的含义
c
1个回答
0
投票

!
是 NOT。
!!
不是不是。

!!getenv ("POSIXLY_CORRECT")
被用作
getenv ("POSIXLY_CORRECT") != NULL
的简写。

© www.soinside.com 2019 - 2024. All rights reserved.