lkml.org 
[lkml]   [1996]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectgetservbyport (fwd)

I've got the question: why this produces shit! ?

#include <stdio.h>
#include <netdb.h>

main() {
struct servent *serv;
if ((serv = getservbyport(23, "tcp")) == NULL) {
printf("shit!\n");
} else {
printf("name: %s\n", serv->s_name);
}
}


Bartlomiej Czardybon
Silesian Technical University - Faculty of Computer Science


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.029 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site