1
0
Fork 0

Add non-parsing WriteOut.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3184
This commit is contained in:
Peter Veenstra 2008-07-26 19:06:26 +00:00
parent ec45bd0fad
commit e7d66020ea
2 changed files with 9 additions and 3 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: programs.cpp,v 1.31 2008-03-02 11:13:46 qbix79 Exp $ */
/* $Id: programs.cpp,v 1.32 2008-07-26 19:06:26 qbix79 Exp $ */
#include <vector>
#include <ctype.h>
@ -126,10 +126,15 @@ void Program::WriteOut(const char * format,...) {
vsnprintf(buf,2047,format,msg);
va_end(msg);
Bit16u size=strlen(buf);
Bit16u size = strlen(buf);
DOS_WriteFile(STDOUT,(Bit8u *)buf,&size);
}
void Program::WriteOut_NoParsing(const char * format) {
Bit16u size = strlen(format);
DOS_WriteFile(STDOUT,(Bit8u *)format,&size);
}
bool Program::GetEnvStr(const char * entry,std::string & result) {
/* Walk through the internal environment and see for a match */