[Coco] Kreider OS-9 C Library

James Jones jejones3141 at gmail.com
Sun May 6 18:55:47 EDT 2018


The source does indeed help. Expressed in terms of the C standard
libraries  (in particular those in string.h),

   - skipbl(s) returns the value you'd get from s + strspn(s, " "), i.e. a
   pointer to the first character in s that's not a space (if it's all spaces,
   that would be a pointer to the terminating NUL).
   - skipwd(s) returns the value you'd get from strpbrk(s, " \t"), i.e. a
   pointer to the first character in s that's either a space or a tab (or s's
   terminating NUL if there aren't any spaces or tabs in s).



On Wed, May 2, 2018 at 1:16 AM, Bill Pierce via Coco <coco at maltedmedia.com>
wrote:

> Tim, all versions I have of the Kreider C library docs, including the
> edited version from Dean Leiber's old site, have the same problem.
> But looking at the sources for the library, it seems to return after the
> first <space> is found therefore skipping the word (skipword?). The
> position of that <space> is returned.
>
> I have uploaded the revised manual to my FTP:
>
> http:yaccs.info/BPIERCECOCO/Stuff/CLib-91 C Library Reference (Carl
> Kreider).pdf
>
> Here is the sources for both skipbl and skipwd in RMA assembler:
>
>  psect skip_a,0,0,0,0,0
>  nam skip_c
>
> skipbl:
>  ldx 2,s
> _3 ldb ,x+
>  cmpb #32
>  beq _3
>  cmpb #9
>  beq _3
>  bra _7
>
>
> skipwd:
>  ldx 2,s
> _8 ldb ,x+
>  beq _7
>  cmpb #32
>  beq _7
>  cmpb #9
>  bne _8
> _7 leax -1,x
>  tfr x,d
>  rts
>
>  endsect
>
>
>  Hope it helps :-)
>
>
>
> Bill Pierce
> "Charlie stole the handle, and the train it won't stop going, no way to
> slow down!" - Ian Anderson - Jethro Tull
>
> My Music from the Tandy/Radio Shack Color Computer 2 & 3
> https://sites.google.com/site/dabarnstudio/
> Co-Contributor, Co-Editor for CocoPedia
> http://www.cocopedia.com/wiki/index.php/Main_Page
>
> E-Mail: ooogalapasooo at aol.com
>
>
>
>
>
> -----Original Message-----
> From: tim lindner <tlindner at macmess.org>
> To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
> Sent: Wed, May 2, 2018 12:41 am
> Subject: [Coco] Kreider OS-9 C Library
>
> I was going over the documentation for this library (I found it onRTSI). I
> discovered an error.The man pages for SKIPWD and SKIPBL have the same text.
> Both describe SKIPBL.To anyone who might have their own copy of the man
> page for SKIPWD: Ifyou have the correct man page for this function please
> forward it tome.-- --tim lindner"Proper User Policy apparently means Simon
> Says."-- Coco mailing listCoco at maltedmedia.comhttps://
> pairlist5.pair.net/mailman/listinfo/coco
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list