memory man page on Xenix

Man page or keyword search:  
man Server   1130 pages
apropos Keyword Search (all sections)
Output format
Xenix logo
[printable version]



     MEMORY(S)		      XENIX System V		     MEMORY(S)

     Name
	  memccpy, memchr, memcmp, memcpy, memset - Memory operations.

     Syntax
	  #include <memory.h>

	  char *memccpy (s1, s2, c, n)
	  char *s1, *s2;
	  int c, n;

	  char *memchr (s,c,n)
	  char *s;
	  int c, n;

	  int memcmp (s1, s2, n)
	  char *s1, *s2;
	  int n;

	  char *memcpy (s1, s2, n)
	  char *s1, *s2;
	  int n;

	  char *memset (s, c, n)
	  char *s;
	  int c, n;

     Description
	  These functions operate as efficiently as possible on memory
	  areas; however, they do not check for the overflow of any
	  receiving memory area.  Memory areas are arrays of
	  characters bounded by a count, not terminated by a null
	  character.

	  memccpy copies characters from memory area s2 into s1,
	  stopping after the first occurrence of character c has been
	  copied, or after n characters have been copied, whichever
	  comes first.	It returns a pointer to the character after
	  the copy of c in s1.	If c was not found in the first n
	  characters of s2, memccpy returns a NULL pointer.

	  memchr returns a pointer to the first occurrence of
	  character c in the first n characters of memory area s.  If
	  c does not occur, this function returns a NULL pointer.

     Page 1					      (printed 8/7/87)

     MEMORY(S)		      XENIX System V		     MEMORY(S)

	  memcmp compares its arguments, looking at the first n
	  characters only, and returns an integer.  This integer will
	  be less than, equal to, or greater than 0 according to
	  whether s1 is lexicographically less than, equal to, or
	  greater than s2.

	  memcpy copies n characters from memory area s2 to s1.	 It
	  returns s1.

	  memset sets the first n characters in memory area s to the
	  value of character c.	 It returns s.

	  These routines are declared in the <memory.h> header file.

     Notes
	  memcmp uses native character comparison, which is signed on
	  some systems and unsigned on others; therefore, the sign of
	  the value returned is device-dependent when one of the
	  characters has its high-order bit set.

	  Character movement is performed differently in different
	  implementations, so overlapping moves may yield unexpected
	  results.

     Page 2					      (printed 8/7/87)

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net