www.delorie.com/gnu/docs/guile/guile_188.html   search  
 
Buy GNU books!


Guile Reference Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

21.4.2 String Predicates

The following procedures can be used to check whether a given string fulfills some specified property.

Scheme Procedure: string? obj
C Function: scm_string_p (obj)
Return #t if obj is a string, else #f.

Scheme Procedure: string-null? str
C Function: scm_string_null_p (str)
Return #t if str's length is zero, and #f otherwise.
 
(string-null? "")  => #t
y                    => "foo"
(string-null? y)     => #f


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003