Thread overview
segfaulting exe / atoi, toStringz
Nov 08, 2004
Thomas Kühne
Nov 10, 2004
Walter
Nov 10, 2004
Thomas Kühne
November 08, 2004
might be related to / or duplication of: <cm98hu$e30$1@digitaldaemon.com> / digitalmars.D:12248

code:
# import std.string;
# int main(char[][] arg) {
#       char[] one = "1";
#       debug printf("pre\n");
#       int N = atoi(std.string.toStringz(one));
#       return 0;
#}

The debug build behaves as expected but the normal build produces a segfaulting exe.

Thomas
November 10, 2004
I can't duplicate this.


November 10, 2004
> I can't duplicate this.

Sorry, gdc's libphobos interfiered.

Thomas