Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(object->name == NULL || object->owner == NULL) {
- // Some of the fields have a NULL value, what means that we found some problem allocating the memory
- return ERR_NOT_IMPLEMENTED;
- }
- strcpy(object->name, name);
- object->owner = owner;
- return OK;
Add Comment
Please, Sign In to add comment