/****************************************************************************
- * Copyright (c) 2007-2008,2009 Free Software Foundation, Inc. *
+ * Copyright (c) 2007-2009,2013 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
/*
* Author: Thomas E. Dickey - 2007
*
- * $Id: dots_mvcur.c,v 1.6 2010/11/14 01:00:44 tom Exp $
+ * $Id: dots_mvcur.c,v 1.8 2013/05/25 22:58:22 tom Exp $
*
* A simple demo of the terminfo interface, and mvcur.
*/
static long total_chars = 0;
static time_t started;
-static int
-outc(TPUTS_ARG c)
+static
+TPUTS_PROTO(outc, c)
{
int rc = c;
if (putc(c, stdout) == EOF)
rc = EOF;
}
- return rc;
+ TPUTS_RETURN(rc);
}
static bool
}
}
outc(p);
+ ++x0;
fflush(stdout);
++total_chars;
}