This wiki is being migrated to http://www.github.com/z88dk/z88dk/wiki

 

Differences

This shows you the differences between two versions of the page.

libnew:string [2015/08/31 04:19]
aralbrec Completed
libnew:string [2016/05/12 19:04] (current)
aralbrec
Line 4: Line 4:
^ Header    | [[http://z88dk.cvs.sourceforge.net/viewvc/z88dk/z88dk/include/_DEVELOPMENT/sccz80/string.h?content-type=text%2Fplain|{z88dk}/include/_DEVELOPMENT/sccz80/string.h]] | ^ Header    | [[http://z88dk.cvs.sourceforge.net/viewvc/z88dk/z88dk/include/_DEVELOPMENT/sccz80/string.h?content-type=text%2Fplain|{z88dk}/include/_DEVELOPMENT/sccz80/string.h]] |
^            | [[http://z88dk.cvs.sourceforge.net/viewvc/z88dk/z88dk/include/_DEVELOPMENT/sdcc/string.h?content-type=text%2Fplain|{z88dk}/include/_DEVELOPMENT/sdcc/string.h]] | ^            | [[http://z88dk.cvs.sourceforge.net/viewvc/z88dk/z88dk/include/_DEVELOPMENT/sdcc/string.h?content-type=text%2Fplain|{z88dk}/include/_DEVELOPMENT/sdcc/string.h]] |
-^ Source    | [[http://z88dk.cvs.sourceforge.net/viewvc/z88dk/z88dk/libsrc/_DEVELOPMENT/string/z80/|{z88dk}/libsrc/_DEVELOPMENT/string]]                    | 
Other references: Other references:
Line 13: Line 12:
  * [[http://z88dk.cvs.sourceforge.net/viewvc/z88dk/z88dk/libsrc/_DEVELOPMENT/c11_n1570.pdf|The C11 Draft Standard]]   * [[http://z88dk.cvs.sourceforge.net/viewvc/z88dk/z88dk/libsrc/_DEVELOPMENT/c11_n1570.pdf|The C11 Draft Standard]]
  * [[http://z88dk.cvs.sourceforge.net/viewvc/z88dk/z88dk/libsrc/_DEVELOPMENT/memstreams_n1337.pdf|Proposed Extensions to C11]]   * [[http://z88dk.cvs.sourceforge.net/viewvc/z88dk/z88dk/libsrc/_DEVELOPMENT/memstreams_n1337.pdf|Proposed Extensions to C11]]
 +
 +
 +===== MACROS =====
 +
 +^ NULL            | %%((void*)(0))%%  | pointer to nothing  |
 +
 +
 +===== TYPES =====
 +
 +^ size_t          | unsigned int  |
====== COPYING ====== ====== COPYING ======
Line 241: Line 250:
Return bit position of the least significant set bit in //i//.  Bits are numbered from 1 to 32 from the right.  If //i// = 0, return 0. Return bit position of the least significant set bit in //i//.  Bits are numbered from 1 to 32 from the right.  If //i// = 0, return 0.
 +
 +==== int ffsll(long long i) ====
 +
 +(nightly build, sdcc)\\
 +Return bit position of the least significant set bit in //i//.  Bits are numbered from 1 to 64 from the right.  If //i// = 0, return 0.
==== char *_memlwr_(void *p, size_t n) ==== ==== char *_memlwr_(void *p, size_t n) ====
Line 266: Line 280:
Apply tolower() to each char in string //s//.  Return //s//. Apply tolower() to each char in string //s//.  Return //s//.
-==== size_t strnlen(char *s, size_t max_len) ====+==== size_t strnlen(char *s, size_t n) ====
-Return max(//n//, strlen(//s//))+Return min(//n//, strlen(//s//)).  Does not examine more than //n// chars in //s//.
==== char *strnset(char *s, int c, size_t n) ==== ==== char *strnset(char *s, int c, size_t n) ====
 
libnew/string.1440991171.txt.gz · Last modified: 2015/08/31 04:19 by aralbrec
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki