473,473 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Is this program standard conform?

Is the following program standard conform?
(reduced as much as possible so it still shows the problem)

/* begin */
#include <stdio.h>

void xfprintf(FILE *);

void xfprintf(FILE *f) {
fprintf(f, "x\n");
}

int main(void) {
xfprintf(stderr);
return 0;
}
/* end */
It compiles with gcc without warnings and works correctly, but trying
to compile it with a particular other popular compiler, it yields the
following diagnostics:

lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116 Previous definition of 'xfprintf' here
2 errors, 0 warnings
1 error
make: *** [xfprintf.obj] Error 1

Who is at fault here, my program or the compiler?

Jan 21 '08 #1
24 1784
On Jan 21, 3:13 am, Fumeur <f...@invalid.invalidwrote:
Is the following program standard conform?
(reduced as much as possible so it still shows the problem)

/* begin */
#include <stdio.h>

void xfprintf(FILE *);

void xfprintf(FILE *f) {
fprintf(f, "x\n");

}

int main(void) {
xfprintf(stderr);
return 0;}

/* end */

It compiles with gcc without warnings and works correctly, but trying
to compile it with a particular other popular compiler, it yields the
following diagnostics:

lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116 Previous definition of 'xfprintf' here
2 errors, 0 warnings
1 error
make: *** [xfprintf.obj] Error 1

Who is at fault here, my program or the compiler?
int foo(void); is a declaration while int foo(void) { return 42; } is
a definition.
Apparently, xfprintf() is defined twice.
Your snippet is valid ISO C.
Jan 21 '08 #2
In article <26****************@aioe.org>, Fumeur <f6@invalid.invalidwrote:
>lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116 Previous definition of 'xfprintf' here
Please don't feed the anonymous troll.

-- Richard
--
:wq
Jan 21 '08 #3
Richard Tobin wrote:
Fumeur <f6@invalid.invalidwrote:
>lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116
Previous definition of 'xfprintf' here

Please don't feed the anonymous troll.
Why do you consider Fumeur to be a troll?

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.

--
Posted via a free Usenet account from http://www.teranews.com

Jan 21 '08 #4
ri*****@cogsci.ed.ac.uk (Richard Tobin) writes:
In article <26****************@aioe.org>, Fumeur <f6@invalid.invalidwrote:
>>lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116 Previous definition of 'xfprintf' here

Please don't feed the anonymous troll.

-- Richard
But you can?
Jan 21 '08 #5
Fumeur <f6@invalid.invalidwrote:
lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116 Previous definition of 'xfprintf' here
2 errors, 0 warnings
1 error
make: *** [xfprintf.obj] Error 1
Either you're not calling your implementation correctly, or (in this
case, _highly_ more likely), it is broken. No ISO C implementation is
allowed to declare an identifier called xfprintf in its Standard headers
(which include <stdio.h>); it is in your namespace, not its, and it is
not an existing Standard C function.

Richard
Jan 21 '08 #6
In article <3p************@news.individual.net>,
Richard <rg****@gmail.comwrote:
>ri*****@cogsci.ed.ac.uk (Richard Tobin) writes:
>In article <26****************@aioe.org>, Fumeur <f6@invalid.invalidwrote:
>>>lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116 Previous definition of 'xfprintf' here

Please don't feed the anonymous troll.

-- Richard

But you can?
Ssssh. You're using logic. Stop that. They don't like it.

Jan 21 '08 #7
Fumeur wrote:
Is the following program standard conform?
(reduced as much as possible so it still shows the problem)

/* begin */
#include <stdio.h>

void xfprintf(FILE *);

void xfprintf(FILE *f) {
fprintf(f, "x\n");
}

int main(void) {
xfprintf(stderr);
return 0;
}
/* end */
It compiles with gcc without warnings and works correctly, but trying
to compile it with a particular other popular compiler, it yields the
following diagnostics:

lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116 Previous definition of 'xfprintf' here
2 errors, 0 warnings
1 error
make: *** [xfprintf.obj] Error 1

Who is at fault here, my program or the compiler?
You are using a bad bad compiler. This is unacceptable!

I would ask

1) For a full refund of the money you spent.

*After* you get the money :-)

2) Ask Ossama bin laden to kill that infidel to the principles
and spirit of C.


--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Jan 21 '08 #8
jacob navia wrote:
I would ask
2) Ask Ossama bin laden to kill that infidel to the principles
and spirit of C.

I've found a simpler approach. Jacob goes into the killfile.
Jan 21 '08 #9
On Mon, 21 Jan 2008 11:10:47 GMT, Richard Bos wrote:
>Fumeur <f6@invalid.invalidwrote:
>lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116 Previous definition of 'xfprintf' here
2 errors, 0 warnings
1 error
make: *** [xfprintf.obj] Error 1

Either you're not calling your implementation correctly, or (in this
case, _highly_ more likely), it is broken. No ISO C implementation is
allowed to declare an identifier called xfprintf in its Standard headers
(which include <stdio.h>); it is in your namespace, not its, and it is
not an existing Standard C function.
Thanks, that's what I thought. I had a look at the standard myself and
didn't find any reference to xfprintf(), but that was only C99 and not
any previous versions.

In the compiler/implementation's defense, it does not really "define"
said function at the indicated location, even though the diagnostic may
be misleading; line 116 in its <stdio.hactually reads

int xfprintf(FILE *,const char *,...);
Would that warrant a bug report (rejects a conforming program)?

Jan 21 '08 #10
Fumeur <f6@invalid.invalidwrote:
On Mon, 21 Jan 2008 11:10:47 GMT, Richard Bos wrote:
Fumeur <f6@invalid.invalidwrote:
lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116 Previous definition of 'xfprintf' here
2 errors, 0 warnings
1 error
make: *** [xfprintf.obj] Error 1
Either you're not calling your implementation correctly, or (in this
case, _highly_ more likely), it is broken. No ISO C implementation is
allowed to declare an identifier called xfprintf in its Standard headers
(which include <stdio.h>); it is in your namespace, not its, and it is
not an existing Standard C function.

Thanks, that's what I thought. I had a look at the standard myself and
didn't find any reference to xfprintf(), but that was only C99 and not
any previous versions.

In the compiler/implementation's defense, it does not really "define"
said function at the indicated location,
It doesn't need to. It is not even allowed to declare it.
even though the diagnostic may
be misleading; line 116 in its <stdio.hactually reads

int xfprintf(FILE *,const char *,...);

Would that warrant a bug report (rejects a conforming program)?
If you think it'll help. But yes, it's certainly a bug.

Richard
Jan 21 '08 #11
Fumeur <f6@invalid.invalidwrites:
On Mon, 21 Jan 2008 11:10:47 GMT, Richard Bos wrote:
>>Fumeur <f6@invalid.invalidwrote:
>>lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116 Previous definition of 'xfprintf' here
2 errors, 0 warnings
1 error
make: *** [xfprintf.obj] Error 1

Either you're not calling your implementation correctly, or (in this
case, _highly_ more likely), it is broken. No ISO C implementation is
allowed to declare an identifier called xfprintf in its Standard headers
(which include <stdio.h>); it is in your namespace, not its, and it is
not an existing Standard C function.

Thanks, that's what I thought. I had a look at the standard myself and
didn't find any reference to xfprintf(), but that was only C99 and not
any previous versions.
No library functions have been dropped since the first C standard of
1989/1990. (gets() has finally been deprecated, but it hasn't been
removed.)
In the compiler/implementation's defense, it does not really "define"
said function at the indicated location, even though the diagnostic may
be misleading; line 116 in its <stdio.hactually reads

int xfprintf(FILE *,const char *,...);

Would that warrant a bug report (rejects a conforming program)?
If that declaration is visible in what the implementation claims to be
conforming mode, then yes, that's a bug. The implementation *must*
allow you to declare your own xfprintf function.

It's legal for an implementation to declare additional functions in
standard headers *if* they're only enabled in a non-conforming mode
(for example, via a command-line option that sets or clears some
preprocessor macro, or that controls which copy of <stdio.hto use).
But IMHO it's a bad idea; implementation-defined functions should be
declared in implementation-defined headers, just for the sake of
clarity.

--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jan 21 '08 #12
jacob navia <ja***@nospam.comwrites:
Fumeur wrote:
>Is the following program standard conform?
(reduced as much as possible so it still shows the problem)

/* begin */
#include <stdio.h>

void xfprintf(FILE *);

void xfprintf(FILE *f) {
fprintf(f, "x\n");
}

int main(void) {
xfprintf(stderr);
return 0;
}
/* end */
It compiles with gcc without warnings and works correctly, but trying
to compile it with a particular other popular compiler, it yields the
following diagnostics:

lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116 Previous definition of 'xfprintf' here
2 errors, 0 warnings
1 error
make: *** [xfprintf.obj] Error 1

Who is at fault here, my program or the compiler?

You are using a bad bad compiler. This is unacceptable!

I would ask

1) For a full refund of the money you spent.

*After* you get the money :-)

2) Ask Ossama bin laden to kill that infidel to the principles
and spirit of C.
jacob, this is how you respond to bug reports? Get over yourself.
Not everything posted here is a personal attack on you.

One of your users (I presume Fumeur is using lcc-win) wanted to
declare his own function called "xfprintf". A conforming
implementation *must* allow him to do so. Your compiler didn't,
because you've apparently declared your own "xfprintf" function in a
standard header, infringing on the user's namespace. It appears from
the other responses in this thread that Fumeur ran into this by
accident. And when he came here to ask whether the fault is in his
program or in the compiler, you responded with the above-quoted crap.

Does the fact that your compiler is distributed free of charge mean
that users can have no expectation of quality?

If you wanted to be taken seriously, you would (a) publicly apologize
to Fumeur, (b) fix this bug in your implementation, and (c) search
your implementation for similar bugs, and fix them as well.

Just recently we've seen three examples of lcc-win features that
violate the standard: your "%b" format for printf, your min and max
macros, and now your xfprintf function. I suggest that these are a
symptom of a deeper problem.

For each non-standard function you provide (xfprintf, min, max), you
should make sure either that it's declared in an
implementation-defined header or that its declaration is disabled in
conforming mode. Make sure that every extension you provide (that is
enabled in conforming mode) cannot affect the behavior of any strictly
conforming program.

It's up to you.

--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jan 21 '08 #13
Keith Thompson wrote:
Just recently we've seen three examples of lcc-win features that
violate the standard: your "%b" format for printf
Why?
7.19.6.1:
"9 If a conversion specification is invalid, the behavior is undefined."

--
Army1987 (Replace "NOSPAM" with "email")
Jan 21 '08 #14
Army1987 wrote:
Keith Thompson wrote:
>Just recently we've seen three examples of lcc-win features that
violate the standard: your "%b" format for printf
Why?
7.19.6.1:
"9 If a conversion specification is invalid, the behavior is undefined."
Of course it is undefined but there people
that insist that lcc-win is the devil.

Yeah... I am a sinner...

I will go to C's heretics hell probably condemned to use gcc -v
for all eternity...

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Jan 21 '08 #15
On 21 Jan 2008 at 23:03, jacob navia wrote:
Of course it is undefined but there people
that insist that lcc-win is the devil.

Yeah... I am a sinner...

I will go to C's heretics hell probably condemned to use gcc -v
for all eternity...
You have to remember that many of those people are pathetic bullies, and
attacking lcc-win is one of their few pleasures in life... Heathfield
has even doubled his fun by setting up sock puppets to make personal
attacks on Jacob.

Jan 21 '08 #16
Army1987 wrote:
Keith Thompson wrote:
Just recently we've seen three examples of lcc-win
features that violate the standard: your "%b" format
for printf
Why?
7.19.6.1:
"9 * If a conversion specification is invalid, the
behavior is undefined."
Lowercase conversion specifiers are reserved for future use
[cf 7.26.9.] If lcc-win used %B instead, it would be fine.

jacob navia <ja...@nospam.comwrote:
Of course it is undefined but there people
that insist that lcc-win is the devil.
The only person bringing religion into this is you. All
I see are people pointing out where your implementation
is not conforming.
Yeah... I am a sinner...

I will go to C's heretics hell probably condemned to use
gcc -v for all eternity...
Or you could fix the problems with lcc-win and give
programmers more reason to use it.

--
Peter
Jan 22 '08 #17
Peter Nilsson wrote:
>Army1987 wrote:
Keith Thompson wrote:
Just recently we've seen three examples of lcc-win
features that violate the standard: your "%b" format
for printf

Why?
7.19.6.1:
"9 Â* If a conversion specification is invalid, the
behavior is undefined."

Lowercase conversion specifiers are reserved for future use
[cf 7.26.9.] If lcc-win used %B instead, it would be fine.
So? I think it's not broken *yet*, since as of C99 + TC3 (i.e. n1256), a
program with printf("%b"); is allowed to do anything.
For example, glibc's printf() prints strerror(errno) with the %m specifier.

Yes, using capitals would lower the chances for it to be broken *in
future*, but as it stands, it is not one of the reasons why lcc-win32 is
broken.

--
Army1987 (Replace "NOSPAM" with "email")
Jan 22 '08 #18
jacob navia wrote:
Army1987 wrote:
>Keith Thompson wrote:
>>Just recently we've seen three examples of lcc-win features that
violate the standard: your "%b" format for printf
Why?
7.19.6.1:
"9 If a conversion specification is invalid, the behavior is undefined."

Of course it is undefined but there people
that insist that lcc-win is the devil.
That's a persecution complex. In case you didn't get it, I was indeed
saying that you *are* allowed to implement an extra functionality for the
%b specifier.

--
Army1987 (Replace "NOSPAM" with "email")
Jan 22 '08 #19
Army1987 <army1...@NOSPAM.itwrote:
Peter Nilsson wrote:
Army1987 wrote:
Keith Thompson wrote:
Just recently we've seen three examples of lcc-win
features that violate the standard: your "%b" format
for printf

Why?
7.19.6.1:
"9 * If a conversion specification is invalid, the
behavior is undefined."
Lowercase conversion specifiers are reserved for future use
[cf 7.26.9.] If lcc-win used %B instead, it would be fine.

So? I think it's not broken *yet*, since as of C99 + TC3
(i.e. n1256), a program with printf("%b"); is allowed to do
anything.
The issue is whether Jacob's implementation (which claims
conformance) has the right to define a behaviour for %b.
It does not.
For example, glibc's printf() prints strerror(errno) with
the %m specifier.
That too is broken.
Yes, using capitals would lower the chances for it to be
broken *in future*,
You miss the point of some of the standard's reservations.
They allow the committee to make choices that aren't already
tainted with widespread differences, viz snprintf.

But it's not just conversion specifiers with lcc-win, it's
length modifiers as well. Though Jacob at least asked last
time before he ignored advice...

"So many people has stolen the extra format characters for
various purposes that we actually had a hard time finding
one for use with fixed-point types in the embeded systems
TR. Since whoever uses these extensions surely cannot
expect other printf implementations to uderstand them, no
portability purpose is achieved by adding them to printf."
- Doug Gwyn, csc
but as it stands, it is not one of the
reasons why lcc-win32 is broken.
It is certainly not one of the main reasons. Nevertheless,
using a facet that implementors are specifically asked _not_
to use potentially undermines future standards. This is
ironic from a person who claims to want to improve the C
language.

--
Peter
Jan 22 '08 #20
On Mon, 21 Jan 2008 07:54:53 -0600, jacob navia wrote
(in article <fn**********@aioe.org>):
Fumeur wrote:
>Is the following program standard conform?
(reduced as much as possible so it still shows the problem)

/* begin */
#include <stdio.h>

void xfprintf(FILE *);

void xfprintf(FILE *f) {
fprintf(f, "x\n");
}

int main(void) {
xfprintf(stderr);
return 0;
}
/* end */
It compiles with gcc without warnings and works correctly, but trying
to compile it with a particular other popular compiler, it yields the
following diagnostics:

lc -ansic -A -shadows -unused -O -c xfprintf.c -o xfprintf.obj
Error xfprintf.c: 4 redefinition of 'xfprintf'
Error c:\lcc\include\stdio.h: 116 Previous definition of 'xfprintf' here
2 errors, 0 warnings
1 error
make: *** [xfprintf.obj] Error 1

Who is at fault here, my program or the compiler?

You are using a bad bad compiler. This is unacceptable!
Am I to understand that this is your response to a valid test case
submission?
I would ask

1) For a full refund of the money you spent.

*After* you get the money :-)

2) Ask Ossama bin laden to kill that infidel to the principles
and spirit of C.
Well, that's professional. I can see why it is so widely used.
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Jan 22 '08 #21
Army1987 <ar******@NOSPAM.itwrites:
Keith Thompson wrote:
>Just recently we've seen three examples of lcc-win features that
violate the standard: your "%b" format for printf
Why?
7.19.6.1:
"9 If a conversion specification is invalid, the behavior is undefined."
There's a footnote attached to the line you quoted:

See future library directions (7.26.9).

7.26.9 says:

Lowercase letters may be added to the conversion specifiers and
length modifiers in fprintf and fscanf. Other characters may be
used in extensions.

This was discussed here just recently. The use of "%b" as an
extension doesn't break any existing portable code, but a future
version of the standard could break the implementation.

--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jan 22 '08 #22
jacob navia <ja***@nospam.comwrites:
[...]
Of course it is undefined but there people
that insist that lcc-win is the devil.

Yeah... I am a sinner...

I will go to C's heretics hell probably condemned to use gcc -v
for all eternity...
jacob, you need to take a break. Seriously.

--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jan 22 '08 #23
Peter Nilsson wrote:
Army1987 <army1...@NOSPAM.itwrote:
>Peter Nilsson wrote:
Lowercase conversion specifiers are reserved for future use
[cf 7.26.9.] If lcc-win used %B instead, it would be fine.

So? I think it's not broken *yet*, since as of C99 + TC3
(i.e. n1256), a program with printf("%b"); is allowed to do
anything.

The issue is whether Jacob's implementation (which claims
conformance) has the right to define a behaviour for %b.
It does not.
>For example, glibc's printf() prints strerror(errno) with
the %m specifier.

That too is broken.
I think I'm missing a point.
7.19.6.1 says: "If a conversion specification is invalid, the behavior is
undefined.".
3.7.1 defines "undefined behavior" as "behavior, upon use of a
nonportable or erroneous program construct or of erroneous data, for which
this International Standard imposes no requirements".

So if I'm right, if a program contains:
printf("%m");
anything it might do wouldn't violate the standard. This includes printing
strerror(errno).

If I'm wrong, what is a conforming implementation allowed to do when
executing the statement above, and what is it forbidden to do?

(Of course I'm using "broken" to mean "not conforming". Your point can
still be valid if you mean something else by it. Is this the case?)

--
Army1987 (Replace "NOSPAM" with "email")
Jan 22 '08 #24
Army1987 <ar******@NOSPAM.itwrites:
Peter Nilsson wrote:
>Army1987 <army1...@NOSPAM.itwrote:
>>Peter Nilsson wrote:
>Lowercase conversion specifiers are reserved for future use
[cf 7.26.9.] If lcc-win used %B instead, it would be fine.

So? I think it's not broken *yet*, since as of C99 + TC3
(i.e. n1256), a program with printf("%b"); is allowed to do
anything.

The issue is whether Jacob's implementation (which claims
conformance) has the right to define a behaviour for %b.
It does not.
>>For example, glibc's printf() prints strerror(errno) with
the %m specifier.

That too is broken.

I think I'm missing a point.
7.19.6.1 says: "If a conversion specification is invalid, the behavior is
undefined.".
3.7.1 defines "undefined behavior" as "behavior, upon use of a
nonportable or erroneous program construct or of erroneous data, for which
this International Standard imposes no requirements".

So if I'm right, if a program contains:
printf("%m");
anything it might do wouldn't violate the standard. This includes printing
strerror(errno).

If I'm wrong, what is a conforming implementation allowed to do when
executing the statement above, and what is it forbidden to do?

(Of course I'm using "broken" to mean "not conforming". Your point can
still be valid if you mean something else by it. Is this the case?)
You're right. As far as I can tell, using "%b" as an extension to
print a value in binary doesn't render the compiler non-conforming.
So my statement upthread that this violates the standard was
incorrect. Sorry about that.

But as C99 7.26.9p1 says (under "Future library directions"):

Lowercase letters may be added to the conversion specifiers and
length modifiers in fprintf and fscanf. Other characters may be
used in extensions.

Given the above, I'd say that last sentence is more of a
recommendation than a requirement. I note that it doesn't say that
lowercase letters may not be used in extensions, only that other
characters may be used.

Implementations don't *have* to avoid using lowercase letters for
extensions in fprintf and fscanf, but they should.

jacob's response when this was brought up a week or so ago was quite
reasonable:

| Obvious: I did not know that. Since this is a very minor extension
| maybe I can just change it, but if people use it they will complain
|
| Stupid error from my part.

(I'm not saying it really was a stupid error, merely that jacob was
reasonable about admitting that it was an error.)

--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jan 22 '08 #25

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

57
by: Piotr Wolski | last post by:
how to make my page that it was correct with every browser standard? for example when i change HTML's table size it has no effect when i see it under mozilla and has effect under Internet...
71
by: Christopher Benson-Manica | last post by:
At what point was the .h dropped from the STL headers? I just had a discussion yesterday with my boss, who said he wanted .h on all the STL includes, despite me protesting that it was not...
40
by: findmadhav | last post by:
I need a program in C (something like a TSR) which will automatically press the function key F6, say about every 5 seconds. Can anyone provide me with an exe of such a program? Thanks in advance.
21
by: Kannan | last post by:
Its been a while I have done pure C programming (I was coding in C++). Is the following function valid according to standard C? int main(int argc, char *argv) { int x; x = 9; printf("Value...
6
by: toton | last post by:
Hi, Anyone have a link to comparative study of different C++ compilers and how much they conform to C++ language standard? Most of the big platforms I know have GCC which well supports C++...
14
by: prasadjoshi124 | last post by:
Hi All, I am writing a small tool which is supposed to fill the filesystem to a specified percent. For, that I need to read how much the file system is full in percent, like the output given...
14
by: wshaer | last post by:
Hi all, I have an assignment and I need some help with it. This is the assignment // Research reports are often required to conform to a given standard such as APA or MLA. These standards...
24
by: lector | last post by:
#include <stdio.h> #include <math.h> #define M_PI 3.14159 int main(void) { double theta, phi, sinth; double count; double incr; double s;
46
by: Kenny O'Clock | last post by:
This came up in a job interview, what is the output of the program below? I tried to compile and run it myself, but my compiler (lcc-win32) aborts with this errors.... Warning test2.c: 3 ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.