}
/* Do some parsing */
- if (strlen(inbuf)>0) {
+ if (!IsEmptyStr(inbuf)) {
/* Fold in all the spacing */
for (i=0; i<strlen(inbuf); ++i) {
}
/* Convert &; tags to the forbidden characters */
- if (strlen(outbuf)>0) for (i=0; i<strlen(outbuf); ++i) {
+ if (!IsEmptyStr(outbuf)) for (i=0; i<strlen(outbuf); ++i) {
/* Character entity references */
if (!strncasecmp(&outbuf[i], " ", 6)) {
/* Output any lines terminated with hard line breaks */
do {
did_out = 0;
- if (strlen(outbuf)>0) {
+ if (!IsEmptyStr(outbuf)) {
for (i = 0; i<strlen(outbuf); ++i) {
if ( (i<(screenwidth-2)) && (outbuf[i]=='\n')) {