diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-21 13:15:05 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-21 13:15:05 +0000 |
| commit | d1df184f0f74ed201614b17ea1d1d67cffe5773b (patch) | |
| tree | 2b3bf7e5c395517e4e25e9e4805125ea3ea1ba5f | |
| parent | b7aeed9d5779058bf6210fd735aa4d1c6f3012c6 (diff) | |
| download | rockbox-d1df184f0f74ed201614b17ea1d1d67cffe5773b.zip rockbox-d1df184f0f74ed201614b17ea1d1d67cffe5773b.tar.gz rockbox-d1df184f0f74ed201614b17ea1d1d67cffe5773b.tar.bz2 rockbox-d1df184f0f74ed201614b17ea1d1d67cffe5773b.tar.xz | |
Added strncpy to the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4911 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/plugin.c | 1 | ||||
| -rw-r--r-- | apps/plugin.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 3cdc56c..20d1697 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 d34c32e..06a31ad 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) */ |