home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!udel!louie!dvss!jtroy
- From: dvss!jtroy@udel.edu (Jay Troy)
- Newsgroups: comp.os.os2.programmer
- Subject: EMX library bug.
- Message-ID: <ReiBoB5w164w@dvss.UUCP>
- Date: Wed, 22 Jul 92 10:36:02 EDT
- Organization: Delaware Valley Solution Systems, Inc.
- Lines: 30
-
-
- I think I've discovered an EMX library bug. The standard library function
- strtok causes an access violation in every combination that I've tried. The
- following simple C program illustrates this problem:
-
- ---cut here---
- #include <stdlib.h>
- #include <string.h>
- #include <math.h>
-
- main()
- {
- char temp[10];
- char *ch = "3.4 4.1";
-
- printf("ch = %s\n",ch);
- strcpy(temp, strtok(ch," "));
- printf("temp = %s\n",temp);
- }
- ---cut here---
-
- I guess I'll start to look at the library source. If anyone already has
- this problem fixed or wants more info, please email me. Thanks.
-
-
- Jay Troy Delaware Valley Solution Systems, Inc.
- Computing Solutions for Business and Industry
- P.O. Box 190 // Claymont, DE 19703 // (302)798-DVSS
- Internet: ...!udel.edu!dvss!jtroy (jtroy@dvss.UUCP)
- --
-