🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #407

EMX library bug.

#407
From: Jay Troy
Date: Wed, 22 Jul 1992 14:36
30 lines
1168 bytes
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)
--
Technical Details
Message-ID: <ReiBoB5w164w@dvss.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!udel!louie!dvss!jtroy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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