diff options
| author | Nils Wallménius <nils@rockbox.org> | 2007-11-18 14:12:01 +0000 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2007-11-18 14:12:01 +0000 |
| commit | 4acae4da032ebd045456d3a625cc96ad4d4745d8 (patch) | |
| tree | 88f634756aa1c40ebcaa4889e8b5bb4637dfc9e9 /apps/bookmark.c | |
| parent | 940fe31f8102e8723856471896e463d090354aaf (diff) | |
| download | rockbox-4acae4da032ebd045456d3a625cc96ad4d4745d8.zip rockbox-4acae4da032ebd045456d3a625cc96ad4d4745d8.tar.gz rockbox-4acae4da032ebd045456d3a625cc96ad4d4745d8.tar.bz2 rockbox-4acae4da032ebd045456d3a625cc96ad4d4745d8.tar.xz | |
Use the strrsplt function in one more place
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15662 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/bookmark.c')
| -rw-r--r-- | apps/bookmark.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c index e0e9f8b..3d47059 100644 --- a/apps/bookmark.c +++ b/apps/bookmark.c @@ -508,22 +508,6 @@ static int buffer_bookmarks(struct bookmark_list* bookmarks, int first_line) return bookmarks->start + bookmarks->count; } -static char* strrsplt(char* str, int c) -{ - char* s = strrchr(str, c); - - if (s != NULL) - { - *s++ = '\0'; - } - else - { - s = str; - } - - return s; -} - static char* get_bookmark_info(int list_index, void* data, char *buffer) { struct bookmark_list* bookmarks = (struct bookmark_list*) data; |