Discussion:
What is zprintf() ?
(too old to reply)
Chris
2008-01-13 18:24:40 UTC
Permalink
Hi,

I found this in a source I want to use and bcc55 accepts it without error.
I can't find anything about it in the docs.

zprintf(2, "INSERTING BITS: %d\n", v_bits);

The first parm (2) is in some other line 1.
It outputs to the console like a normal printf().

Can someone explain what it does and why it's not in the docs?

Thanks,
Chris.
Ed Mulroy [TeamB]
2008-01-13 19:39:14 UTC
Permalink
I have looked through both the libraries and the header files of bcc55 and
cannot find a zprintf.

--------------------------------
C:\Borland\BCC55\Bin
type try.c
#include <stdio.h>

int main()
{
int v_bits = 6;
zprintf(2, "INSERTING BITS: %d\n", v_bits);
return 0;
}
C:\Borland\BCC55\Bin
bcc32 -c try.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
try.c:
Warning W8065 try.c 6: Call to function 'zprintf' with no prototype in
function
main

C:\Borland\BCC55\Bin
--------------------------------

. Ed
Hi,
I found this in a source I want to use and bcc55 accepts it without error.
I can't find anything about it in the docs.
zprintf(2, "INSERTING BITS: %d\n", v_bits);
The first parm (2) is in some other line 1.
It outputs to the console like a normal printf().
Can someone explain what it does and why it's not in the docs?
Thanks,
Chris.
Chris
2008-01-13 23:33:56 UTC
Permalink
Hi Ed,

Sorry! I had to take a closer look. It's a created function.in the source
using printf().
It's because it looked so much like a one of the printf() variants.

The first parameter gives a "verbose" level to suppress display.
Will look better in the future before I post.

Thanks for your efforts,
Chris.
Post by Ed Mulroy [TeamB]
I have looked through both the libraries and the header files of bcc55 and
cannot find a zprintf.
--------------------------------
C:\Borland\BCC55\Bin
type try.c
#include <stdio.h>
int main()
{
int v_bits = 6;
zprintf(2, "INSERTING BITS: %d\n", v_bits);
return 0;
}
C:\Borland\BCC55\Bin
bcc32 -c try.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Warning W8065 try.c 6: Call to function 'zprintf' with no prototype in
function
main
C:\Borland\BCC55\Bin
--------------------------------
. Ed
Hi,
I found this in a source I want to use and bcc55 accepts it without error.
I can't find anything about it in the docs.
zprintf(2, "INSERTING BITS: %d\n", v_bits);
The first parm (2) is in some other line 1.
It outputs to the console like a normal printf().
Can someone explain what it does and why it's not in the docs?
Thanks,
Chris.
Loading...