zhengda, le Sun 17 Aug 2008 13:40:59 +0200, a écrit :
> I wonder how I return ENOMEM? Does asprintf() write the errno itself?
Yes.
> Should the function returns immediately after __asprintf() returns error?
It has to clean its mess first of course.
Samuel
zhengda, le Sun 17 Aug 2008 13:57:18 +0200, a écrit :
> My first C language teacher told me to initialize all local variables,
> especially the pointers,
That's probably some rule of the thumb for beginners, but we're not
supposed to be beginners (hey, that's the C library! ;) )
Samuel
Hi all,
I request any of you to help me in testing the procfs translator
and procps tools and htop. I have uploaded the binaries of procps and htop
in my blog and have written a small how-to do things. If anyone can help me
it will be of great use to me :-)
http://madhusudancs.info/proc
[EMAIL PROTECTED] wrote:
Hi,
On Sat, Aug 16, 2008 at 11:10:50PM +0200, zhengda wrote:
I run subhurd. When I try to exit it by running 'halt', I get the error
message as follow:
init: notifying ext2fs.static hd1s1 of shutdown...init: Killing pid 64
memory_object_data_request(0x0,
[EMAIL PROTECTED] wrote:
It really depends on the context. In some cases -- if the pointer is
dereferenced -- NULL will create an obvious failure, while some random
uninitialized pointer might be harder to track down.
In other cases -- if it's used as argument to realloc(), free() etc.; or
if i
Samuel Thibault wrote:
zhengda, le Fri 15 Aug 2008 20:05:53 +0200, a écrit :
Samuel Thibault wrote:
zhengda, le Fri 15 Aug 2008 19:05:49 +0200, a écrit :
Samuel Thibault wrote:
zhengda, le Fri 15 Aug 2008 18:27:00 +0200, a écrit :
+ if (__