Changeset 40522
- Timestamp:
- Aug 29, 2018, 9:42:25 AM (8 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 2 added
- 5 edited
-
cmd.basic/Makefile (modified) (1 diff)
-
cmd.basic/init.c (modified) (2 diffs)
-
cmd.basic/strstr.c (added)
-
cmd.basic/substr.c (modified) (2 diffs)
-
cmd.data/Makefile (modified) (1 diff)
-
cmd.data/init.c (modified) (2 diffs)
-
cmd.data/triangle.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.basic/Makefile
r37049 r40522 54 54 $(SRC)/strlen.$(ARCH).o \ 55 55 $(SRC)/substr.$(ARCH).o \ 56 $(SRC)/strstr.$(ARCH).o \ 56 57 $(SRC)/strhash.$(ARCH).o \ 57 58 $(SRC)/strmatch.$(ARCH).o \ -
trunk/Ohana/src/opihi/cmd.basic/init.c
r37049 r40522 42 42 int strmatch PROTO((int, char **)); 43 43 int substr_func PROTO((int, char **)); 44 int strstr_func PROTO((int, char **)); 44 45 int strpop PROTO((int, char **)); 45 46 int strhash PROTO((int, char **)); … … 94 95 {1, "fprintf", fprintf_opihi, "formatted print to standard output"}, 95 96 {1, "strlen", strlen_func, "string length"}, 96 {1, "substr", substr_func, "substring"}, 97 {1, "substr", substr_func, "extract a substring"}, 98 {1, "strstr", strstr_func, "find a substring"}, 97 99 {1, "strhash", strhash, "generate a hash for a string"}, 98 100 {1, "strpop", strpop, "pop a string"}, -
trunk/Ohana/src/opihi/cmd.basic/substr.c
r25757 r40522 7 7 8 8 if ((argc != 4) && (argc != 5)) { 9 gprint (GP_ERR, "USAGE: substr (string) N 1 N2[var]\n");9 gprint (GP_ERR, "USAGE: substr (string) Nstart Nlength [var]\n"); 10 10 return (FALSE); 11 11 } … … 20 20 } 21 21 if ((N2 < 0) || ((N2+N1) > strlen(argv[1]))) { 22 gprint (GP_ERR, "ERROR: end valueout of range in substr command\n");22 gprint (GP_ERR, "ERROR: length out of range in substr command\n"); 23 23 return (FALSE); 24 24 } -
trunk/Ohana/src/opihi/cmd.data/Makefile
r40383 r40522 153 153 $(SRC)/textline.$(ARCH).o \ 154 154 $(SRC)/threshold.$(ARCH).o \ 155 $(SRC)/triangle.$(ARCH).o \ 155 156 $(SRC)/tv.$(ARCH).o \ 156 157 $(SRC)/tvchannel.$(ARCH).o \ -
trunk/Ohana/src/opihi/cmd.data/init.c
r40383 r40522 138 138 int textline PROTO((int, char **)); 139 139 int threshold PROTO((int, char **)); 140 int triangle PROTO((int, char **)); 140 141 int tv PROTO((int, char **)); 141 142 int tvchannel PROTO((int, char **)); … … 323 324 {1, "textline", textline, "write text line on graph"}, 324 325 {1, "threshold", threshold, "find (interpolate) location of transition"}, 326 {1, "triangle", triangle, "fill a triangular region with a value"}, 325 327 {1, "tv", tv, "display an image on the Kii window"}, 326 328 {1, "tvchannel", tvchannel, "set the current tv channel"},
Note:
See TracChangeset
for help on using the changeset viewer.
