ASE2 CARD CATALOG ENTRY
Ada System Certifier_1 1.0 Date/Time of Processing: Wednesday 25 May 1994 11:25:21Am Overall Assessment of System: OK Classification of System: A Basis of Classification -- Syntax Errors PASS Completeness PASS Independence from External Libraries PASS Independence from a Specific Ada Compiler PASS Number of ... Files 1 Library Units 2 Lines 1125 Statements 324 Comments 541
CStrings provides a number of procedures and functions which manipulate null-terminated strings (called C Strings) and Ada Strings (which contain no ending null character). Type STRING is used to contain C and Ada strings. A C string contains a sequence of characters followed by an ASCII.NUL; more characters may follow the ASCII.NUL in the buffer, but they are ignored. An Ada string is a sequence of characters bound by the dimensions of the buffer; all characters in the buffer are a part of the string.
This package contains implementations of all the string- oriented C library functions described in the Sun Release 4.0 man pages on "strings." The functionality and arguments of these routines is almost always identical to the functionality and arguments of the original C routines. Most subprograms will process either C or Ada strings.
The routines implemented in this package are: Strcat (as a procedure and a function), Strncat (as a procedure and a function), Strcmp, Strncmp, Strcasecmp, Strncasecmp, Strcpy, Strncpy, Strlen, Strchr, Strrchr, Strpbrk, Strspn, Strcspn, and Strtok.
MIL-HDBK-1804 PDL is used throughout the CStrings package. To compile the package CStrings, simply compile CSTRINGS.SRC; this is a Pager file containing the Spec and Body in compilation order.
Four test procedures, named CSTEST0 to CSTEST3, and their supporting TEST_LOG package are included. They conduct over 300 tests on the CStrings package. To compile them, simply compile the file CSTRINGS.TST; this is a Pager file containing the components in compilation order.
DATE VERSION AUTHOR HISTORY 2/28/91 1.0 Richard Conn Initial Release
This prologue must be included in all copies of this software. This software is copyright by the author. This software is released to the Ada community. Restrictions on use or distribution: NONE
This software and its documentation are provided "AS IS" and without any expressed or implied warranties whatsoever. No warranties as to performance, merchantability, or fitness for a particular purpose exist. The user is advised to test the software thoroughly before relying on it. The user must assume the entire risk and liability of using this software. In no event shall any person or organization of people be held responsible for any direct, indirect, consequential or inconsequential damages or lost profits.
Powered by the Generic Web-Based Reuse Library (GWRL)