FireBirdLib - Topfield TMS PVR TAP Programming Library
FlashFavoritesGetSelectedGroupName.c
Go to the documentation of this file.
1#include <string.h>
2#include "libFireBird.h"
3
4//Minimum size of FavName should be 12
5char *FlashFavoritesGetSelectedGroupName(char *FavName, byte FavNameSize)
6{
8
9 tFavorites Favorites;
10
11 if(FavName && FavNameSize)
12 {
13 if(FlashFavoritesGetInfoCurrent(&Favorites))
14 {
15 strncpy(FavName, Favorites.GroupName, FavNameSize - 1);
16 FavName[FavNameSize - 1] = '\0';
17 }
18 else
19 FavName[0] = '\0';
20 }
21
22 TRACEEXIT();
23 return FavName;
24}
bool FlashFavoritesGetInfoCurrent(tFavorites *Favorites)
char * FlashFavoritesGetSelectedGroupName(char *FavName, byte FavNameSize)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243
char GroupName[12]
Definition: libFireBird.h:1733