mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-21 18:30:20 +00:00
9bd9755dbb
Signed-off-by: Laurent Vivier <Laurent@Vivier.EU>
23 lines
307 B
C
23 lines
307 B
C
/*
|
|
*
|
|
* (c) 2004-2007 Laurent Vivier <Laurent@Vivier.EU>
|
|
*
|
|
*/
|
|
|
|
#include <string.h>
|
|
|
|
#include "libmap.h"
|
|
|
|
int map_set_partition_name(map_t *map, char* name)
|
|
{
|
|
if (!map_partition_is_valid(map))
|
|
return -1;
|
|
|
|
if (strlen(name) > 31)
|
|
return -1;
|
|
|
|
strncpy(map->partition.PartName, name, 32);
|
|
|
|
return 0;
|
|
}
|