setmmsgfh - set the message file handle


#include "windows.h"
#include "stdio.h"
#include "api3.h"
#include "mmsg.h"

int FAR setmmsgfh(newfhandle)
int newfhandle;

Setmmsgfh() will change the file handle that putmsg writes messages to. It returns its argument. The default is to write messages to file handle 2 (stderr).


int fh;
OFSTRUCT mmsginfo;
APICP *acp;


                              /* open file msg.001 in "wb" mode */

if(fh!=(-1)) setmmsgfh(fh);    /* set message file handle if ok */


acp=openapicp();              /* open mm api control parameters */

Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.