Create find_applet_by_name function. Save 32 bytes.

This commit is contained in:
Matt Kraai
2001-02-01 19:21:20 +00:00
parent 05e782ddd3
commit f2cc2762bb
8 changed files with 37 additions and 41 deletions

View File

@@ -88,7 +88,6 @@ extern const struct BB_applet applets[];
#undef PROTOTYPES
extern const char *applet_name;
extern int applet_name_compare(const void *x, const void *y);
extern void usage(const char *usage) __attribute__ ((noreturn));
extern void error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
@@ -153,6 +152,7 @@ extern char *get_last_path_component(char *path);
extern FILE *wfopen(const char *path, const char *mode);
extern FILE *xfopen(const char *path, const char *mode);
extern void chomp(char *s);
extern struct BB_applet *find_applet_by_name(const char *name);
#ifndef DMALLOC
extern void *xmalloc (size_t size);