std-string-mismatch


Synopsis

(std-string-mismatch <str1> <str2>)

Description

STD-STRING-MISMATCH returns the length of the longest common prefix of both strings or 0 if none is found. It is the same as the VLISP extension VL-STRING-MISMATCH.

Examples

(std-string-mismatch "STD-FUN" "STD-VAR")   => 3
(std-string-mismatch "STD-VAR" "*STD-VAR*") => 0

Arguments

str1, str2: strings

Return Value

A positive integer number (0 or higher).

Side Effects

None.

Module

(std-require 'STDSTR)

Defined in STDSTR