引用另一个在此结束我的问题.
这些PHP代码行中的双重下划线是什么意思?
$WPLD_Trans['Yes']=__('Yes',$WPLD_Domain);
$WPLD_Trans['No']=__('No',$WPLD_Domain);
Run Code Online (Sandbox Code Playgroud)
约的用途相关的问题__(),_()等等.在WordPress的等.
作为上述一个答案开始,和其他相关.但是作为自己的问题(带答案)发布,因为它变得更加详细.
请随时编辑和改进 - 或输入更好的答案/问题.
在代码中我通常会使用:
#include <stdlib.h>
void dref1(char **blah)
{
(*blah)[0] = 'a';
(*blah)[1] = 'z';
(*blah)[2] = 0x00;
}
/* or */
void dref2(char **blah)
{
char *p = *blah;
*p++ = 'w';
*p++ = 't';
*p = 0x00;
}
int main(void)
{
char *buf = malloc(3);
dref1(&buf);
puts(buf);
dref2(&buf);
puts(buf);
free(buf);
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我的问题是,是否有可能/如何直接取消引用和增加指针:
**blah = 'q'; /* OK as (*blah)[0] ? */
(*blah)++; /* Why not this? */
*((*blah)++) = 'w'; /* ;or. */
...
Run Code Online (Sandbox Code Playgroud)