version 1.13, 2005/06/16 05:07:24 |
version 1.14, 2013/11/06 06:23:24 |
|
|
/*$OpenXM: OpenXM/src/kan96xx/plugin/cmo.c,v 1.12 2004/08/28 12:50:06 takayama Exp $*/ |
/*$OpenXM: OpenXM/src/kan96xx/plugin/cmo.c,v 1.13 2005/06/16 05:07:24 takayama Exp $*/ |
#include <stdio.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
/* #include <netinet/in.h> */ |
/* #include <netinet/in.h> */ |
Line 162 dumpCmoBuf(struct cmoBuffer *cb) |
|
Line 162 dumpCmoBuf(struct cmoBuffer *cb) |
|
char *s; |
char *s; |
if (cb->isStream) { |
if (cb->isStream) { |
printf("cmoBuffer is directed to a stream.\n"); |
printf("cmoBuffer is directed to a stream.\n"); |
return; |
return 0; |
} |
} |
size = cb->pos; |
size = cb->pos; |
s = (char *)(cb->buf); |
s = (char *)(cb->buf); |
Line 173 dumpCmoBuf(struct cmoBuffer *cb) |
|
Line 173 dumpCmoBuf(struct cmoBuffer *cb) |
|
printf("%3x",(int)(unsigned char)s[i]); |
printf("%3x",(int)(unsigned char)s[i]); |
} |
} |
putchar('\n'); |
putchar('\n'); |
|
return 0; |
} |
} |
|
|
/* This obsolete function is used to write data |
/* This obsolete function is used to write data |