/usr/share/cpputest/scripts/templates/ClassNameCMultipleInstance.c is in cpputest 3.8-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #include "ClassName.h"
#include <stdlib.h>
#include <memory.h>
typedef struct ClassNameStruct
{
int placeHolderForHiddenStructElements;
} ClassNameStruct;
ClassName ClassName_Create(void)
{
ClassName self = calloc(1, sizeof(ClassNameStruct));
return self;
}
void ClassName_Destroy(ClassName self)
{
free(self);
}
|