OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i386/] [ts_386ex/] [tools/] [network_ada/] [tcprelay/] [print_error.c] - Blame information for rev 773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#include <stdio.h>
2
#include <string.h>
3
#include <errno.h>
4
 
5
void
6
print_error (void) {
7
  printf("Problem connecting socket: %s\n", strerror (errno));
8
}
9
 
10
void
11
dump_sin (unsigned char *dp) {
12
  int i;
13
 
14
  printf("Dump of sockaddr_in =\n");
15
  for(i=0; i<16; i++)
16
    printf("%x ", *dp++);
17
  printf("\n");
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.