Replace <string.h>

This commit is contained in:
David Schleef 2001-07-15 19:57:08 +00:00
parent a00960e008
commit 8139bc3558

View file

@ -21,6 +21,7 @@
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
#include <string.h>
#include "examples.h"
#define BUFSZ 10000
@ -204,7 +205,7 @@ int prepare_cmd_lib(comedi_t *dev,int subdevice,comedi_cmd *cmd)
*/
int prepare_cmd(comedi_t *dev,int subdevice,comedi_cmd *cmd)
{
memset(cmd,0,sizeof(cmd));
memset(cmd,0,sizeof(*cmd));
/* the subdevice that the command is sent to */
cmd->subdev = subdevice;