Seppo Mustonen : Programming Survo in C

Functions in library SURVO.LIB

empty_line
Summary

int empty_line(s,len)
char *s;           /* string */
int len;           /* length of string */
Description

The empty_line function tests whether the string s consists (for the len first bytes) of spaces (blanks) only.

Return Value

empty_line returns 1 if the entire string s or its len first bytes are spaces and otherwise 0.

Example

char x[LLENGTH];
edread(x,r1+r);
i=empty_line(x+1,c2);

  /* i=1, if the line after the activated line is empty
     and i=0, if it is not empty. */


Front page of Survo C libraries