mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-06-10 03:29:29 +00:00
binprint.c:
Reformattted source. No substantive change.
This commit is contained in:
parent
8cea45f4f0
commit
fc1083b2b0
|
@ -26,17 +26,17 @@ unsigned int doline(char *dest, char *source,
|
|||
unsigned char *buffer2;
|
||||
|
||||
main(argc,argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc;
|
||||
char **argv;
|
||||
{
|
||||
int duh;
|
||||
int a;
|
||||
int c,errflg = 0,columns = 16;
|
||||
size_t pos = 0;
|
||||
unsigned char *buffer;
|
||||
extern char *optarg;
|
||||
extern int optind;
|
||||
extern int getopt(int,char **,char*);
|
||||
int duh;
|
||||
int a;
|
||||
int c,errflg = 0,columns = 16;
|
||||
size_t pos = 0;
|
||||
unsigned char *buffer;
|
||||
extern char *optarg;
|
||||
extern int optind;
|
||||
extern int getopt(int,char **,char*);
|
||||
|
||||
while ((c = getopt(argc,argv, "Vc:")) != EOF)
|
||||
switch (c) {
|
||||
|
@ -69,7 +69,8 @@ extern int getopt(int,char **,char*);
|
|||
exit(1);
|
||||
}
|
||||
printf("\n%s\n",*argv);
|
||||
action: while ((a = (int)read(duh, buffer,
|
||||
action:
|
||||
while ((a = (int)read(duh, buffer,
|
||||
(size_t)(columns * sizeof(unsigned char)))) != 0) {
|
||||
printGood(pos,buffer,a,columns);
|
||||
pos += a;
|
||||
|
@ -82,17 +83,17 @@ action: while ((a = (int)read(duh, buffer,
|
|||
}
|
||||
|
||||
printGood(off,buf,real,form)
|
||||
long off;
|
||||
unsigned char *buf;
|
||||
int real;
|
||||
int form;
|
||||
long off;
|
||||
unsigned char *buf;
|
||||
int real;
|
||||
int form;
|
||||
{
|
||||
if (!real) return;
|
||||
/*
|
||||
#if 0
|
||||
printf("%8lX: ",off);
|
||||
*/
|
||||
#endif
|
||||
|
||||
/* The following is a hack required because of buffering by the stdio
|
||||
/* The following is a hack required because of buffering by the stdio
|
||||
libraries. I wish it was not necesary... */
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user