home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.24 / text0006.txt < prev    next >
Encoding:
Text File  |  1991-09-03  |  2.1 KB  |  55 lines

  1. Submitted-by: fred@mindcrf.uucp (Fred Zlotnick)
  2.  
  3. In article <1991Jun12.035046.16547@uunet.uu.net> lewine@cheshirecat.webo.dg.com 
  4. (Don Lewine) writes:
  5. >In article <4369@rwthinf.UUCP>, berg@physik.tu-muenchen.de
  6. >(Stephen R. van den Berg) writes:
  7. >|> Could someone knowledgable please tell me if the following include files,
  8. >|> the mentioned identifiers and the include files they are 'allocated' to are
  9. >|> all conform the POSIX standard?  
  10. >
  11. >To solve this problem at less than half the price of the IEEE 
  12. >standard, and get much more information, see below. . .
  13.  
  14.     [ Many correct comments omitted... ]
  15.  
  16. >|> #include <stdlib.h>        /* getenv() memmove() malloc() realloc()
  17. >|>                    free() strtol() size_t */
  18. >                   memmove() is in <string.h>  all others are 
  19. >                   in <stdlib.h>
  20.  
  21. memmove() is not supported by POSIX.1.  Clause 8.1 of the POSIX.1 standard
  22. lists 110 functions from the C standard and states that
  23.  
  24.     POSIX.1 with the C Language binding comprises these functions,
  25.     the extensions to them described in this clause, and the rest
  26.     of the requirements stipulated in [this standard].
  27.  
  28. The C standard specifies 22 functions in <string.h>.  Only 14 of them
  29. are listed in POSIX.1, and memmove() is not one of these.  Thus a strictly
  30. conforming POSIX.1 application should not use memmove().
  31.  
  32. I was going to avoid using this newsgroup for advertising, but since
  33. Donald has already broken the ice, I might mention that you can also
  34. find the contents of all POSIX.1 and ANSI C headers in Appendix D of
  35. my book, "The POSIX.1 Standard: a Programmer's Guide", available for
  36. $29.95 from
  37.  
  38.     Benjamin/Cummings Publishing Company
  39.     390 Bridge Parkway
  40.     Redwood City, 94065
  41.     (800) 950-BOOK for information
  42.     (800) 447-2226 for orders
  43.  
  44. or at better bookstores almost everywhere.  My opinion of my book is
  45. as unhumble as Don's opinion of his.  (And I'm sure that he has written
  46. a very fine book.)
  47. -- 
  48. Fred Zlotnick                       |    #include <std.disclaimer>
  49. fred@mindcraft.com                  |    #include <brilliant.quote>
  50. ...!{decwrl,ames}!mindcrf!fred      |
  51.  
  52.  
  53. Volume-Number: Volume 24, Number 8
  54.  
  55.