All Downloads are FREE. Search and download functionalities are using the official Maven repository.

C-libcurl.apiKey.c.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
#include 
#include 
#include "../include/keyValuePair.h"

keyValuePair_t *keyValuePair_create(char *key, void *value) {
    keyValuePair_t *keyValuePair =  malloc(sizeof(keyValuePair_t));
    keyValuePair->key = key;
    keyValuePair->value = value;
    return keyValuePair;
}

keyValuePair_t* keyValuePair_create_allocate(char* key, double value) {
	double* boolpointer = malloc(sizeof(value));
	memcpy(boolpointer, &value, sizeof(value));
	return keyValuePair_create(key, boolpointer);
}

void keyValuePair_free(keyValuePair_t *keyValuePair) {
    free(keyValuePair);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy