From 57b39c44a303280bf94e4b68401b8d0d49c050ce Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 26 Jan 2008 12:23:00 +0100 Subject: [PATCH] add a comment --- file.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.25.1