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

Subversion Repositories thor

[/] [thor/] [trunk/] [FT64v5/] [software/] [CC64/] [source/] [txtStream.cpp] - Rev 48

Compare with Previous | Blame | View Log

#include "stdafx.h"
#include <string.h>
#include "txtStream.h"
 
void txtoStream::printf(char *fmt, char *str)
{
  if (level==0)
    return;
  snprintf(buf, sizeof(buf), fmt, str);
	write(buf);
}
 
void txtoStream::printf(char *fmt, char *str, int n)
{
  if (level==0)
    return;
 snprintf(buf, sizeof(buf), fmt, str, n);
 write(buf);
}
 
void txtoStream::printf(char *fmt, char *str, char *str2)
{
  if (level==0)
    return;
 snprintf(buf, sizeof(buf), fmt, str, str2);
 write(buf);
}
 
void txtoStream::printf(char *fmt, char *str, char *str2, int n)
{
  if (level==0)
    return;
	snprintf(buf, sizeof(buf), fmt, str, str2, n);
	write(buf);
}
 
void txtoStream::printf(char *fmt, int n)
{
  if (level==0)
    return;
	snprintf(buf, sizeof(buf), fmt, n);
	write(buf);
}
 
void txtoStream::printf(char *fmt, __int64 n)
{
  if (level==0)
    return;
	snprintf(buf, sizeof(buf), fmt, n);
	write(buf);
}
 
void txtoStream::printf(char *fmt, int n, int m)
{
  if (level==0)
    return;
	snprintf(buf, sizeof(buf), fmt, n, m);
	write(buf);
}
 
void txtoStream::printf(char *fmt, int n, char *str)
{
  if (level==0)
    return;
	snprintf(buf, sizeof(buf), fmt, n, str);
	write(buf);
}
 
void txtoStream::puts(const char *str)
{
  if (level==0)
    return;
  while(*str) {
    putch(*str);
    str++;
  }
}
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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