size_t i;
int status;
+ assert (c != NULL);
+ assert (command != NULL);
+
+ if ((args == NULL) && (args_num > 0))
+ return (EINVAL);
+
/* FIXME: For debugging only */
memset (buffer, 0, sizeof (buffer));
if ((buffer == NULL) || (*buffer_size < 1))
return (EINVAL);
+ assert (c != NULL);
+
/* read one byte from the socket */
status = read_exact (c->fd, word_length, 1);
if (status != 0)
ros_reply_t *head;
ros_reply_t *tail;
+ if (c == NULL)
+ return (NULL);
+
head = NULL;
tail = NULL;
int status;
ros_reply_t *r;
+ if ((c == NULL) || (command == NULL) || (handler == NULL))
+ return (EINVAL);
+
status = send_command (c, command, args_num, args);
if (status != 0)
return (status);