Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Sorry if it is too simple. Cause I have no way to verify whether I am
doing it correctly :(
char rawbuf[100];
$loc_t buf;
buf.loc_loctype = LOCMEMORY;
buf.loc_bufsize = sizeof(rawbuf);
buf.loc_buffer = rawbuf;
Q: When I allocate the buffer myself. Do I need to initialize both
loc_oflags = 0
loc_mflags = 0
The manual says that I must initialize them to 0 when allocating in
memory. But the example given never initializa them.
Thanks in advance.
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.