Guest User

Untitled

a guest
Oct 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. if(object->name == NULL || object->owner == NULL) {
  2.  
  3. // Some of the fields have a NULL value, what means that we found some problem allocating the memory
  4.  
  5. return ERR_NOT_IMPLEMENTED;
  6. }
  7.  
  8. strcpy(object->name, name);
  9. object->owner = owner;
  10.  
  11. return OK;
Add Comment
Please, Sign In to add comment