why rc=4 when program exits -1?

Help
Anonymous
2002-12-11
2003-02-10

  • Anonymous
    2002-12-11

    If I write a C program: negone.c
    main() { return -1; }

    and then in rexx
    negone
    say 'rc =' rc

    the output will be rc = 4

    if I try address cmd negone
    produces the same result.

    address system negone esults in
    rc = -107373741923

    how do I get a -1 in rc???

    Joe

     
    • The bug is fixed in the newer betas. You can download
      one from SourceForge. If the error persists, I assume
      you've used a broken interpreter.

      Don't expect rc=-1 in all systems in RC. The value
      may be 255 or other representations of
      "-1" in different number types. Both values noted
      above are wrong, though.