[dev] [ii] patch for stdio routines

From: Mark Edgar <medgar123_AT_gmail.com>
Date: Thu, 24 Sep 2009 02:36:18 +0200

OK, I'm fairly happy with this, except that so far I've only lightly tested it.

Summary of changes:

Move the getaddrinfo/socket/connect dance to dial(), replacing
memset(&hints) with hints={0}
Replace read(1)*n with fgets()
Replace snprintf(), strlen(), write() with fprintf(), and
corresponding simplifications in parsein()
Replace snprintf(), strlen(), printl() with variadic printl(), and
corresponding simplifications in parsesrv()

Now 226 lines.

The majority of the credit for these changes goes to Kris.

     -Mark

Received on Thu Sep 24 2009 - 00:36:18 UTC

This archive was generated by hypermail 2.2.0 : Thu Sep 24 2009 - 00:48:02 UTC