svn update: 51174 (latest:51480)
[framework/uifw/embryo.git] / src / lib / embryo_str.c
index 16b508a..cd3b942 100644 (file)
@@ -1,7 +1,3 @@
-/*
- * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
- */
-
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
@@ -429,7 +425,7 @@ _embryo_str_strstr(Embryo_Program *ep, Embryo_Cell *params)
    STRGET(ep, s2, params[2]);
    if ((!s1) || (!s2)) return -1;
    p = strstr(s1, s2);
-   if (p == NULL) return -1;
+   if (!p) return -1;
    return (Embryo_Cell)(p - s1);
 }
 
@@ -444,7 +440,7 @@ _embryo_str_strchr(Embryo_Program *ep, Embryo_Cell *params)
    STRGET(ep, s1, params[1]);
    STRGET(ep, s2, params[2]);
    p = strchr(s1, s2[0]);
-   if (p == NULL) return -1;
+   if (!p) return -1;
    return (Embryo_Cell)(p - s1);
 }
 
@@ -459,7 +455,7 @@ _embryo_str_strrchr(Embryo_Program *ep, Embryo_Cell *params)
    STRGET(ep, s1, params[1]);
    STRGET(ep, s2, params[2]);
    p = strrchr(s1, s2[0]);
-   if (p == NULL) return -1;
+   if (!p) return -1;
    return (Embryo_Cell)(p - s1);
 }