-

Changes

Jump to: navigation, search

LIBRARIES PUBLIC DOCUMENT SUPLIB

82 bytes added, 09:28, 11 August 2017
m
no edit summary
;CTYPE .H :Header file which defines character processing functions.
;STDLIB .H :Header file which defines a sort of functions.
;STRING .H :Header file which defines strings processing functions.
;LIBT .LIB :Library file of this library package.
;LIBT .L :Source file of a sort of functions.
== About reproduction ==
This library is under license of HI-TECH C for CP/M Version 3.09 because I changed original header files of HI-TECH C for CP/M Version 3.09.
Cited from original Z80READ.ME below.
The HI-TECH Z80 CP/M C compiler V3.09 is provided free of charge for any
use, private or commercial, strictly as-is. No warranty or product
support is offered or implied.
You may use this software for whatever you like, providing you acknowledge
that the copyright to this software remains with HI-TECH Software.
The author Tatsu have the copyrights of appended functions.
:Returns address of the result of binary search which finds same value as valuable "key" in array"base".
:Array "base" is consisted by "membs" units of "size" bytes elements sorted by ascending order.
:It uses function which returns values below with 2 pointers x, y as argument. This function is given as "compar".
{|class="wikitable"
|-
|<nowiki>*x > *y</nowiki> ||positive number
:It is not case sensitive.
{|class="wikitable"
|-
|s > t ||positive number
;int len;
:Returns values below by comparison between two strings s and t within len charanters by lexical order.:It is not case sensitive.:Functions strncmpi and strnicmp are same. These are defined in string.h and can be called by either name.
It is not case sensitive.Functions strncmpi and strnicmp are same. These are defined in string.h and can be called by either name. {|class="wikitable"
|-
|s > t ||positive number
:unsigned char *strrev(str)
;unsigned char *str;
 
:Reverts string and returns address of it.
:ex)"012345"->"543210"
;char *strtok(buf,mask);char *buf;;char *mask;
:Cuts out token from string buf using string mask as a separator.
;unsigned char *str;
;unsigned char ch;
 
:Fulfill string "str” with character "ch".
;unsigned char *s;
;unsigned char *t;
 
:Copy strings "t" to "s". Appropriate memory size is required. Returns pointer of final \0.
;int n;
:Returns result of comparison between "n" bytes long memory block from address "s" and "n" bytes long memory block from address "t".
{|class="wikitable"
|-
|s > t ||positive number
;char *t;
;:Measure length from the top of string s to the character which is not contained by strings t. Terminal '\0' of valuable t is not compared.
== References==

Navigation menu