Re: Help with PAM and ctypes ... addr is the memory address as a Python integer.... the preferred way to create a NULL pointer in ctypes is to call the pointer type without an argument: ... My initial attempt to fix this involved wrapping strdup to allocate a ... copy of a string to send back to PAM. ... (comp.lang.python)
Re: strdup(NULL) supposed to create SIGSEGV? ... you ask it to copy a NULL pointer.... would you be trying to copy a string where not having a string isn't ... But strdup uses malloc, which is a system call (from the strdup ...malloc isn't a system call. ... (freebsd-hackers)
Re: Crazy stuff ... The array is in the automatic-allocation space (we can call this "the ... is exactly what you want - a pointer to the first character of the string.... Note that strdup is a unixism and not part of the C language. ... (comp.lang.c)
Re: Im going insane ...strdup returns a pointer to a new string which is a duplicate of the string ... Memory for the string is obtained using malloc.... malloc allocated 300 bytes and returns a pointer to ... (comp.unix.programmer)
Re: Question about the clc string lib ... >> - it's unclear, and thus probaby undefined, what passing a string longer... > The standard says that strlen returns the number of characters before ... when I wrote a strdup implementation I ... so I left it as undefined behaviour what the ... (comp.lang.c)