[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Anyone familiar with the execlp system call:

int execlp(file, arg0 [ , arg1,...  , argn ] (char *)0) ?

I am experiencing problems using it in the etrax environment. Compiling the code in question for my host, everything works just fine. But as soon as I compile it with cris and transfer it to a devboard, the call no longer works (everything else works perfectly)

I read something in the C-Standard stating that it very much depends on the implementation how the null-pointer is actually defined, meaning that not all bits must be necessairly 0

Additionally it can be defined as: 
#define NULL (void*) 0
or as
#define NULL (0)

Any clues on this?

cheers, Eric

Eric Chapman

Lehrstuhl für Nachrichtentechnik
Universität des Saarlandes
Postfach 15 11 50
D-66041 Saarbrücken
Tel: +49 681 302 3975
Fax: +49 681 302 3972
Web: www.lnt.uni-saarland.de