From d1df184f0f74ed201614b17ea1d1d67cffe5773b Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Wed, 21 Jul 2004 13:15:05 +0000 Subject: [PATCH] Added strncpy to the plugin API git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4911 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 1 + apps/plugin.h | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/plugin.c b/apps/plugin.c index 3cdc56ceb4..20d1697d6e 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -255,6 +255,7 @@ static const struct plugin_api rockbox_api = { strcmp, button_status, button_clear_queue, + strncpy, }; int plugin_load(char* plugin, void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index d34c32eac0..06a31ade37 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -291,6 +291,7 @@ struct plugin_api { int (*strcmp)(const char *, const char *); int (*button_status)(void); void (*button_clear_queue)(void); + char *(*strncpy)(char *dst, const char *src, size_t length); }; /* defined by the plugin loader (plugin.c) */