Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine
Ulm's Modula-2 Library:
UnixString
NAME
UnixString - auxiliary module for string conversions
SYNOPSIS
CONST BufSiz = 512;
TYPE Buffer = ARRAY[0..BufSiz-1] OF CHAR;
PROCEDURE Copy(VAR buf: Buffer; str: ARRAY OF CHAR);
DESCRIPTION
UNIX system calls expect null-terminated path names
but Modula-2 does not guarantee 0C-termination of strings.
UnixString
is used by all system call interfaces of the Modula-2 library
to assure 0C-termination of strings which are passed to
the system call.
Copy
copies str into buf and guarantees a 0C-termination
of buf.
If str does not fit into buf it is silently truncated.
Edited by: borchert, last change: 1997/02/26, revision: 1.1, converted to HTML: 1997/04/28
Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine