home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sgi / 16558 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.6 KB  |  47 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!caen!destroyer!ncar!csn!news.den.mmc.com!enterprise.den.mmc.com!beck
  3. From: beck@enterprise.den.mmc.com (Fred R. Beck)
  4. Subject: Re: porting code
  5. Message-ID: <1992Nov17.232318.12575@den.mmc.com>
  6. Sender: news@den.mmc.com (News)
  7. Nntp-Posting-Host: gate-enterprise.den.mmc.com
  8. Organization: Martin Marietta
  9. References:  <1992Nov17.000038.21808@den.mmc.com>
  10. Date: Tue, 17 Nov 1992 23:23:18 GMT
  11. Lines: 34
  12.  
  13. In article <1992Nov17.000038.21808@den.mmc.com>, beck@enterprise.den.mmc.com (Fred R. Beck) writes:
  14. |> Just a quick one to you multi-platform c gurus...
  15. |> 
  16. |> I'm trying to port some code from SGI to a MIPS box
  17. |> and have run into a problem I havn't seen before.
  18. |> 
  19. |> After the code successfully compiles, the loader fails
  20. |> to find the appropriate string functions:
  21. |> 
  22. |>     isdigit()
  23. |>     isxdigit()
  24. |>     strncasecmp()
  25. |> 
  26. |> as well as some other string functions.
  27. |> 
  28. |> Any suggestions out there?  I havn't been able to locate
  29. |> any of the above in the libraries in /usr/lib...
  30. |> 
  31. |> Appreciate any help offered!!  -thanx
  32. |> 
  33. |> fred.
  34.  
  35. Thanks to all.  I was able to figure it out.  My guess is
  36. that not every system manufactuer agrees as to what ANSI
  37. is all about.  Once the proper header files were found,
  38. everything worked.  (Except that MIPS doesn't support
  39. strcasecmp(), I had to write my own...)
  40.  
  41. Lesson learned, don't just look at the first header file
  42. which matches your search when porting code to a foreign
  43. system.  Also, never truely beleive man pages on foreign
  44. systems; they lie.
  45.  
  46. fred.
  47.