From: Felix Fietkau Date: Sat, 26 Jan 2008 11:23:00 +0000 (+0100) Subject: add a comment X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=57b39c44a303280bf94e4b68401b8d0d49c050ce;p=oweals%2Fuci.git add a comment --- diff --git a/file.c b/file.c index 7e5a8ac..601fef5 100644 --- a/file.c +++ b/file.c @@ -564,6 +564,12 @@ int uci_load(struct uci_context *ctx, const char *name, struct uci_package **pac return uci_import(ctx, file, name, package); } +/* + * This function returns the filename by returning the string + * after the last '/' character. By checking for a non-'\0' + * character afterwards, directories are ignored (glob marks + * those with a trailing '/' + */ static inline char *get_filename(char *path) { char *p;