Pascal / strings / stricomp
stralloc, strcat, strcomp, strcopy, strdispose, strecopy, strend, » stricomp, strlcat, strlcomp, strlcopy, strlen, strlicomp, strlower, strmove, strnew, strpas, strpcopy, strpos, strrscan, strscan, strupper,
Funcion: stricomp()
Sintaxis:
Descripcion: compara dos cadenas, distingue entre mayusculas y minusculas.
Devuelve
# un negativo Longint cuando S1 # 0 cuando S1=S2.
# positivo longint cuando S1>S2.
Ejemplo:
Sintaxis:
function stricomp( str1: pchar; str2: pchar ):SizeInt;
Descripcion: compara dos cadenas, distingue entre mayusculas y minusculas.
Devuelve
# un negativo Longint cuando S1
# positivo longint cuando S1>S2.
Ejemplo:
Program Example8; Uses strings; { Program to demonstrate the StrLComp function. } Const P1 : PChar = 'This is the first string.'; P2 : PCHar = 'This is the second string.'; Var L : Longint; begin Write ('P1 and P2 are '); If StrComp (P1,P2)<>0 then write ('NOT '); write ('equal. The first '); L:=1; While StrLComp(P1,P2,L)=0 do inc (L); dec(l); Writeln (l,' characters are the same.'); end.
Librerias Pascal
Libreria crt - CRT - Pantalla y teclado del PASCAL de Turbo que maneja la unidadLibreria dos - DOS - Interface Turbo Pascal MS-DOS
Libreria Graph - Unidad para manipular los graficos de la pantalla compatible con TP
Libreria Objects - Objetos basicos compatible con TP
Libreria math - Rutinas adicionales matematicas
Libreria Printer - Provee de acceso a la impresora
Libreria strings - Rutinas para el manejo de cadenas
Libreria BaseUnix - Funcionalidad Basica de Linux
Libreria System - Manejo de Archivos - Funciones para la manipulacion de archivos en Pascal