Next: , Previous: , Up: args predefined   [Index]


8.5.30 Validating generalised C string arguments

Introduction to generalised C strings, for details on generalised C strings.

The following bindings are exported by the library (vicare arguments validation).

Validation Clause: general-c-string obj

Succeed if obj is a generalised C string.

Validation Clause: general-c-string/false obj

Succeed if obj is #f or a generalised C string.

Validation Clause: general-c-string.len str str.len

If str is a pointer object: succeed if str.len an exact integer in the range of the C language type size_t. Otherwise succeed if str.len is #f.

Validation Clause: general-c-string* obj obj.len

Succeed if obj is a generalised C string and obj.len its optional length.

Validation Clause: general-c-string*/false obj obj.len

Succeed if obj is a #f or a generalised C string and obj.len its optional length. If obj is #f: obj.len must be false too.