MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / getStudentName

Function getStudentName

test/test_struct/test_struct_server_impl.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99char *getStudentName(const student *stud)
100{
101 int studNameLen = strlen(stud->name);
102 char *studName = (char *)erpc_malloc(studNameLen * sizeof(char) + 1);
103 strcpy(studName, stud->name);
104 return studName;
105}
106
107float getStudentTestAverage(const student *stud)
108{

Callers 2

getStudentNameMethod · 0.85
TESTFunction · 0.85

Calls 1

erpc_mallocFunction · 0.50

Tested by

no test coverage detected