mirror of
https://github.com/vivier/EMILE.git
synced 2026-10-22 04:02:33 +00:00
add property at end
This commit is contained in:
1 parent
3e35773799
commit
027eced2d7
1 file changed
+23
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
*
|
||||
* (c) 2007 Laurent Vivier <Laurent@lvivier.info>
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "libconfig.h"
|
||||
|
||||
void config_add_property(char* configuration, char* name, char* property)
|
||||
{
|
||||
int index = strlen(configuration);
|
||||
|
||||
if (index > 0)
|
||||
{
|
||||
configuration[index] = '\n';
|
||||
index++;
|
||||
}
|
||||
sprintf(configuration + index,
|
||||
"%s %s", name, property);
|
||||
}
|
||||
Reference in new issue
Block a user