Pascal / strings / strlcomp
stralloc, strcat, strcomp, strcopy, strdispose, strecopy, strend, stricomp, strlcat, » strlcomp, strlcopy, strlen, strlicomp, strlower, strmove, strnew, strpas, strpcopy, strpos, strrscan, strscan, strupper,
Funcion: strlcomp()
Sintaxis:
function strlcomp(
 
  str1: pchar;
 
  str2: pchar;
 
  l: SizeInt
 
):SizeInt;

Descripcion: Compara numeros limitados de caracteres de 2 cadenas terminadas en null

Devuelve
# A negative Longint when S1# 0 when S1=S2.
# A positive Longint when 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 unidad
Libreria 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