mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-21 18:30:20 +00:00
26 lines
399 B
C
26 lines
399 B
C
/*
|
|
*
|
|
* (c) 2007 Laurent Vivier <Laurent@lvivier.info>
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#include "libconfig.h"
|
|
|
|
int config_add_property(int8_t* configuration, char* name, char* property)
|
|
{
|
|
int index = strlen((char*)configuration);
|
|
|
|
if (index > 0)
|
|
{
|
|
configuration[index] = '\n';
|
|
index++;
|
|
}
|
|
sprintf((char*)configuration + index,
|
|
"%s %s", name, property);
|
|
|
|
return index;
|
|
}
|