I could not compile it - shouldn't it be:
#include "redfish.h"
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv)
{
redfishService* service = createServiceEnumerator(argv[1], NULL, NULL, 0);
redfishPayload* payload = getPayloadByPath(service, argv[2]);
char* payloadStr = payloadToString(payload, true);
printf("Payload Value = %s\n", payloadStr);
free(payloadStr);
cleanupPayload(payload);
cleanupServiceEnumerator(service);
}