/* Implementation of fputs using the DBGU as the standard output. Required for printf(). Does NOT currently use the PDC. Returns the number of characters written if successful, or -1 if the output stream is not stdout or stderr.  */
signed int fputs(const char *pStr, FILE *pStream)
/* Implementation of fputs using the DBGU as the standard output. Required for printf(). Does NOT currently use the PDC. Returns the number of characters written if successful, or -1 if the output stream is not stdout or stderr.  */
signed int fputs(const char *pStr, FILE *pStream)
{
    signed int num = 0;
    while (*pStr != 0) {
        if (fputc(*pStr, pStream) == -1) {
            return -1;
        }
        num++;
        pStr++;
    }
    return num;
}