Home
projects

TRS-80 software I wrote
  Zeta BBS
  Utilities
  Printer Utils
  Patches
  Operating Systems
  Library of C
  Languages
  Include files
  Hardware
  Games
  FORTRAN Programs
  File Utils
  Disk Utils
  Comms Programs
  CMD File Utils
  BASIC Programs
  University assignments
  fidonet-packet-handlers

Your donation gives me time
to develop more cool free stuff

Nick Andrew - TRS-80 - Library

TRS-80 C Library

This package contains several C source files and their assembler counterparts which are useful as library functions. The assembler sources will be required to assemble many of my programs.

Some of the sources in here were not written by me, but are required to run a lot of my software.

atoi.c
Implements atoi() and itoa()
cinit.c
This is the C code which runs at the start of every Small C compiled program.
ctype.c and ctype.h
Implements isalpha(), isupper(), islower(), isdigit(), isspace(), toupper(), tolower().
doserr.c
Provides doserr() which translates from a Newdos-80 error number to an error string.
fputc.c
Implements fputc() and feof() (the latter is a dummy function).
fwrite.c
Implements fwrite().
getopt.c
This is Henry Spencer's implementation of getopt().
getuid.c
Implements getuid() as a dummy function.
getw.c
Implements getw() and putw().
index.c
Implements index().
malloct.c
Implements malloc(), realloc(), calloc() and free().
msgfunc.c
Functions for dealing with the Zeta-BBS message base files.
openf2.c
Opens a filename and if error prints an error message and exits.
pnumb.c
Prints a string and a number and a string.
rand.c
Implements a simple random number generator.
sbrk.c
Implements sbrk() using brk().
seekto.c
Seeks to a given sector offset (sector size = 256).
strchr.c
Implements strchr().
strcmp.c
Implements strcpy(), strcmp() and strcat().
strlen.c
Implements strlen().
wild.c
These are some wildcard checking routines I wrote. It looks like it only recognises '*' as a metacharacter, so no it isn't a general regex library.

Download