21 unsigned long hash = 0;
49 void **context = (
void **)malloc(3 *
sizeof(
void *));
50 context[0] = (
void *)compositionState;
51 context[1] = dataCopy;
52 context[2] = (
void *)eventIdCopy;
53 return (
void *)context;
61 void **contextArray = (
void **)context;
62 free(contextArray[1]);
63 free(contextArray[2]);
71 bool isCompositionRunning)
73 void **context = (
void **)malloc(4 *
sizeof(
void *));
74 context[0] = (
void *)compositionState;
75 context[1] = (
void *)inputPortIdentifier;
76 context[2] = (
void *)valueAsString;
77 context[3] = (
void *)isCompositionRunning;
78 return (
void *)context;
86 size_t bufferLength = strlen(s0) + strlen(s1) + 1;
87 char *buffer = (
char *)malloc(bufferLength);
89 strlcat(buffer, s0, bufferLength);
90 strlcat(buffer, s1, bufferLength);
99 size_t bufferLength = strlen(s0) + strlen(s1) + strlen(s2) + 1;
100 char *buffer = (
char *)malloc(bufferLength);
102 strlcat(buffer, s0, bufferLength);
103 strlcat(buffer, s1, bufferLength);
104 strlcat(buffer, s2, bufferLength);
113 size_t bufferLength = 1;
114 for (
size_t i = 0; i < stringCount; ++i)
115 bufferLength += strlen(strings[i]);
116 char *buffer = (
char *)malloc(bufferLength);
118 for (
size_t i = 0; i < stringCount; ++i)
119 strlcat(buffer, strings[i], bufferLength);