473,388 Members | 1,524 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

how to reset all structure fields to 0 or NULL

Hello, All!

I have a structure:

typedef struct cmd_line_s {
char *cl_action;
char *cl_args[10];
unsigned char cl_args_num;
void *cl_handler;
} cmd_line_t;

At initialization time I'm dooing cmd_line_t cli = { NULL, NULL, 0, NULL };

After dealing with 'cli' I'd like to reset fields values to { NULL, NULL, 0,
NULL } state again, what is the most correct and easy way?

Thank you!

With best regards, Roman Mashak. E-mail: mr*@tusur.ru
Nov 14 '05 #1
24 20320
Roman Mashak wrote:
Hello, All!

I have a structure:

typedef struct cmd_line_s {
char *cl_action;
char *cl_args[10];
unsigned char cl_args_num;
void *cl_handler;
} cmd_line_t;

At initialization time I'm dooing cmd_line_t cli = { NULL, NULL, 0, NULL };

After dealing with 'cli' I'd like to reset fields values to { NULL, NULL, 0,
NULL } state again, what is the most correct and easy way?


One way is to copy from an already-initialized instance:

const cmd_line_t empty_line = { NULL, NULL, 0, NULL };
cmd_line_t cli = { NULL, NULL, 0, NULL };
...
/* do things with cli */
...
cli = empty_line;
/* cli is now re-initialized */

C99 provides another way to do this, but it's not all that much
more convenient than the above in this sort of usage.

The initializer you've shown isn't quite complete, and may
cause some compilers to emit warning messages. You might try
rewriting it as

{ NULL, { NULL }, 0, NULL }

or even as

{ NULL,
{ NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL } ,
0,
NULL }

or perhaps just as

{ 0 }

--
Eric Sosman
es*****@acm-dot-org.invalid
Nov 14 '05 #2
In article <d8**********@relay.tomsk.ru>, Roman Mashak <mr*@tusur.ru> wrote:
I have a structure: unsigned char cl_args_num;
void *cl_handler; After dealing with 'cli' I'd like to reset fields values to { NULL, NULL, 0,
NULL } state again, what is the most correct and easy way?


Keep a null copy around and do a structure assignment. After, that
is, having freed whatever dynamic memory is appropriate.

--
Entropy is the logarithm of probability -- Boltzmann
Nov 14 '05 #3
Hello, Eric!
You wrote on Mon, 13 Jun 2005 22:45:55 -0400:

[skip]
ES> The initializer you've shown isn't quite complete, and may
ES> cause some compilers to emit warning messages. You might try
ES> rewriting it as

ES> { NULL, { NULL }, 0, NULL }

ES> or even as

ES> { NULL,
ES> { NULL, NULL, NULL, NULL, NULL,
ES> NULL, NULL, NULL, NULL, NULL } ,
ES> 0,
ES> NULL }

Thanks a lot!

With best regards, Roman Mashak. E-mail: mr*@tusur.ru
Nov 14 '05 #4

Le 14/06/2005 04:17, dans d8**********@relay.tomsk.ru, «*Roman Mashak*»
<mr*@tusur.ru> a écrit*:
Hello, All!

I have a structure:

typedef struct cmd_line_s {
char *cl_action;
char *cl_args[10];
unsigned char cl_args_num;
void *cl_handler;
} cmd_line_t;

At initialization time I'm dooing cmd_line_t cli = { NULL, NULL, 0, NULL };

After dealing with 'cli' I'd like to reset fields values to { NULL, NULL, 0,
NULL } state again, what is the most correct and easy way?

Thank you!

With best regards, Roman Mashak. E-mail: mr*@tusur.ru


Most correct I don't know, but "memset" should work...

Nov 14 '05 #5
Jean-Claude Arbaut wrote:

Le 14/06/2005 04:17, dans d8**********@relay.tomsk.ru, « Roman Mashak »
<mr*@tusur.ru> a écrit :
Hello, All!

I have a structure:

typedef struct cmd_line_s {
char *cl_action;
char *cl_args[10];
unsigned char cl_args_num;
void *cl_handler;
} cmd_line_t;

At initialization time I'm dooing cmd_line_t
cli = { NULL, NULL, 0, NULL };

After dealing with 'cli' I'd like to reset
fields values to { NULL, NULL, 0,
NULL } state again, what is the most correct and easy way?

Thank you!

With best regards, Roman Mashak. E-mail: mr*@tusur.ru


Most correct I don't know, but "memset" should work...


memset(&pointers, 0, sizeof pointers)
is the wrong way to set pointers to NULL.

--
pete
Nov 14 '05 #6
memset(&pointers, 0, sizeof pointers)
is the wrong way to set pointers to NULL.


Oh, excuse me, I thought NULL was null :-)

Nov 14 '05 #7
In article <BE******************************@laposte.net> Jean-Claude Arbaut <je****************@laposte.net> writes:
memset(&pointers, 0, sizeof pointers)
is the wrong way to set pointers to NULL.


Oh, excuse me, I thought NULL was null :-)


The null pointer does not have necessarily all bits 0 (as a floating
point 0.0 has not necessarily all bits 0).
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Nov 14 '05 #8

Le 14/06/2005 14:21, dans II********@cwi.nl, «*Dik T. Winter*»
<Di********@cwi.nl> a écrit*:
In article <BE******************************@laposte.net> Jean-Claude Arbaut
<je****************@laposte.net> writes:
memset(&pointers, 0, sizeof pointers)
is the wrong way to set pointers to NULL.


Oh, excuse me, I thought NULL was null :-)


The null pointer does not have necessarily all bits 0 (as a floating
point 0.0 has not necessarily all bits 0).


Ok. I don't know all architectures, so assigning 0 may be non portable,
although on some OS (MacOSX for example), NULL is defigned as 0:

#define NULL __DARWIN_NULL
#define __DARWIN_NULL ((void *)0)

And the example of floating point 0.0 is irrelevant, +0.0 and -0.0
are two distinct values.

Just one question unrelated with NULLs, is it allowed to write "sizeof int",
or only "sizeof(int)" ? I wonder if GCC correctly follows the Standard...
I get:

test.c: In function 'main':
test.c:5: error: parse error before 'int'

Nov 14 '05 #9
In article <BE******************************@laposte.net> Jean-Claude Arbaut <je****************@laposte.net> writes:
Le 14/06/2005 14:21, dans II********@cwi.nl, «*Dik T. Winter*»
<Di********@cwi.nl> a écrit*:
In article <BED491DD.3131%je****************@laposte.net> Jean-Claude Arbaut
<je****************@laposte.net> writes: ....
Oh, excuse me, I thought NULL was null :-)
The null pointer does not have necessarily all bits 0 (as a floating
point 0.0 has not necessarily all bits 0).


Ok. I don't know all architectures, so assigning 0 may be non portable,
although on some OS (MacOSX for example), NULL is defigned as 0:

#define NULL __DARWIN_NULL
#define __DARWIN_NULL ((void *)0)


Perfectly conforming to the standard. And if that is done on a machine
where the 0 pointer has not all bits 0, the compiler has to ensure that
the proper bit pattern is used for a null pointer, although the source
may contain the constant 0. 0 in a pointer context does *not* mean a
pointer with all bits 0, it means a null pointer.
And the example of floating point 0.0 is irrelevant, +0.0 and -0.0
are two distinct values.
Not in C and not on all machines. But it is relevant. I know one
machine where all bits 0 is a non-normalized 0.0. So if a has that
value, and b is 3.5, a + b will be 3.0.
Just one question unrelated with NULLs, is it allowed to write "sizeof int",
or only "sizeof(int)" ? I wonder if GCC correctly follows the Standard...
I get:

test.c: In function 'main':
test.c:5: error: parse error before 'int'


Only sizeof(int), see the standard. The parenthesis are required when sizeof
is applied to a type.
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Nov 14 '05 #10

Le 14/06/2005 15:54, dans II********@cwi.nl, «*Dik T. Winter*»
<Di********@cwi.nl> a écrit*:
In article <BE******************************@laposte.net> Jean-Claude Arbaut
<je****************@laposte.net> writes:
Le 14/06/2005 14:21, dans II********@cwi.nl, «*Dik T. Winter*»
<Di********@cwi.nl> a écrit*:
In article <BED491DD.3131%je****************@laposte.net> Jean-Claude Arbaut
<je****************@laposte.net> writes: ...
Oh, excuse me, I thought NULL was null :-)

The null pointer does not have necessarily all bits 0 (as a floating
point 0.0 has not necessarily all bits 0).


Ok. I don't know all architectures, so assigning 0 may be non portable,
although on some OS (MacOSX for example), NULL is defigned as 0:

#define NULL __DARWIN_NULL
#define __DARWIN_NULL ((void *)0)


Perfectly conforming to the standard. And if that is done on a machine
where the 0 pointer has not all bits 0, the compiler has to ensure that
the proper bit pattern is used for a null pointer, although the source
may contain the constant 0. 0 in a pointer context does *not* mean a
pointer with all bits 0, it means a null pointer.


You're right. But on MacOSX/PowerPC, the NULL pointer *is* 0. Not compiler
trick, you can check the assembly output. And the "segment zero" is
here to crash if the NULL pointer is dereferenced.
And the example of floating point 0.0 is irrelevant, +0.0 and -0.0
are two distinct values.


Not in C and not on all machines. But it is relevant. I know one
machine where all bits 0 is a non-normalized 0.0. So if a has that
value, and b is 3.5, a + b will be 3.0.


Sorry, I had IEEE 754 in mind. 0.0 and -0.0 are distinct (juste compute
1/x to check this), but 0.0 == -0.0. I'm pretty sure it's perfect IEEE
behaviour. But you're right: one must not use memset to initialize
a zero fp vector... funny.
Just one question unrelated with NULLs, is it allowed to write "sizeof int",
or only "sizeof(int)" ? I wonder if GCC correctly follows the Standard...
I get:

test.c: In function 'main':
test.c:5: error: parse error before 'int'


Only sizeof(int), see the standard. The parenthesis are required when sizeof
is applied to a type.


Thanks.

Nov 14 '05 #11
On 2005-06-14 08:55:41 -0400, Jean-Claude Arbaut
<je****************@laposte.net> said:

Le 14/06/2005 14:21, dans II********@cwi.nl, «*Dik T. Winter*»
<Di********@cwi.nl> a écrit*:
In article <BED491DD.3131%je****************@laposte.net> Jean-Claude Arbaut
<je****************@laposte.net> writes:

memset(&pointers, 0, sizeof pointers)
is the wrong way to set pointers to NULL.

Oh, excuse me, I thought NULL was null :-)
The null pointer does not have necessarily all bits 0 (as a floating
point 0.0 has not necessarily all bits 0).


Ok. I don't know all architectures, so assigning 0 may be non portable,
although on some OS (MacOSX for example),


Assigning zero to a pointer variable is *always* OK, and will always
result in a NULL pointer. But that doesn't mean that the actual, in
memory representation of that NULL pointer is "all-bits zero"
And the example of floating point 0.0 is irrelevant, +0.0 and -0.0
are two distinct values.
Not always, and the example is quite relevant.

Just one question unrelated with NULLs, is it allowed to write "sizeof int",
or only "sizeof(int)" ?


No, when applied to a type, only sizeof(type) is allowed.

--
Clark S. Cox, III
cl*******@gmail.com

Nov 14 '05 #12
Jean-Claude Arbaut <je****************@laposte.net> wrote:
[snip all]

Could you please fix something in your reader, so that it doesn't
insert a space between "Re" and ":" in the subject? I think other
readers don't recognize "Re :" as "regarding" (or "reply"?) prefix
and add their own "Re:"; then probably your reader changes it to "Re :"
again, and the "game of life" restarts. In my reader in threads
menu I'll soon be seeing only "Re : Re : Re : Re : Re : Re : ...".

--
Stan Tobias
mailx `echo si***@FamOuS.BedBuG.pAlS.INVALID | sed s/[[:upper:]]//g`
Nov 14 '05 #13

Le 14/06/2005 17:11, dans 3h************@individual.net, «*S.Tobias*»
<si***@FamOuS.BedBuG.pAlS.INVALID> a écrit*:
Jean-Claude Arbaut <je****************@laposte.net> wrote:
[snip all]

Could you please fix something in your reader, so that it doesn't
insert a space between "Re" and ":" in the subject? I think other
readers don't recognize "Re :" as "regarding" (or "reply"?) prefix
and add their own "Re:"; then probably your reader changes it to "Re :"
again, and the "game of life" restarts. In my reader in threads
menu I'll soon be seeing only "Re : Re : Re : Re : Re : Re : ...".


Sorry, I didn't see... The origin is Microsoft Entourage and its
interpretation of french language rule: it puts a space before a
colon, by default. I'll probably switch my news reader soon :-)

Nov 14 '05 #14
Jean-Claude Arbaut wrote:
« Roman Mashak » <mr*@tusur.ru> a écrit :
typedef struct cmd_line_s {
char *cl_action;
char *cl_args[10];
unsigned char cl_args_num;
void *cl_handler;
} cmd_line_t;

At initialization time I'm dooing
cmd_line_t cli = { NULL, NULL, 0, NULL };

After dealing with 'cli' I'd like to reset fields values to
{ NULL, NULL, 0, NULL } state again, what is the most correct
and easy way?


Most correct I don't know, but "memset" should work...


Definitely incorrect. Those may not be NULLs. Suggested means:

....
/* Very suitable use for a global */
const cmd_line_t clempty = {NULL, NULL, 0, NULL);
....
int main(...)
{
....
cmd_line_t cli = clempty;
....
do {
/* fool with cli */
cli = clempty; /* rezero it */
} while (something);
....
}

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson

Nov 14 '05 #15
In article <BE******************************@laposte.net>,
Jean-Claude Arbaut <je****************@laposte.net> wrote:
Sorry, I had IEEE 754 in mind. 0.0 and -0.0 are distinct (juste compute
1/x to check this), but 0.0 == -0.0. I'm pretty sure it's perfect IEEE
behaviour. But you're right: one must not use memset to initialize
a zero fp vector... funny.
I do not recall the author at the moment, but a few weeks ago
someone posted here indicating that the standard special-cases
all-0 bits as being a valid representation of floating point 0
(but not necessarily the one that will be stored if a 0 is computed.)
But on MacOSX/PowerPC, the NULL pointer *is* 0.


Irrelevant when it comes to writing standard code. What is important
is that if one writes binary 0's to an object pointer cast to char*
or void* [e.g., memset()], and then reinterprets a fragment of
that zero'd object as a pointer, then that pointer will not necessarily
be a NULL pointer.

The guarantees about the NULL pointer comparing equal to 0, or that
assigning 0 shall result in the NULL pointer, are not guarantees that a
bit pattern of all-zeroes will also be a NULL pointer: the guarantees
only hold in the cases where the compiler is able to determine that
numeric 0 is being assigned... and the compiler is allowed to
"intercept" those assignments and comparisions and put in special
handling.

There are, for example, systems on which low memory is valid
storage locations (e.g., trap vectors or I/O words or bitmapped
graphics), and in which the all-0-bits pointer is a valid
address; for such a system, the NULL pointer might be internally
represented as (say) all-1-bits or as any pointer that has the
MSB set, or any of a number of other possibilities.
--
"I want to make sure [a user] can't get through ... an online
experience without hitting a Microsoft ad"
-- Steve Ballmer [Microsoft Chief Executive]
Nov 14 '05 #16
On Tue, 14 Jun 2005 16:17:00 +0000, Walter Roberson wrote:
In article <BE******************************@laposte.net>,
Jean-Claude Arbaut <je****************@laposte.net> wrote:
Sorry, I had IEEE 754 in mind. 0.0 and -0.0 are distinct (juste compute
1/x to check this), but 0.0 == -0.0. I'm pretty sure it's perfect IEEE
behaviour. But you're right: one must not use memset to initialize
a zero fp vector... funny.


I do not recall the author at the moment, but a few weeks ago
someone posted here indicating that the standard special-cases
all-0 bits as being a valid representation of floating point 0
(but not necessarily the one that will be stored if a 0 is computed.)


I believe that is now true for integer types, but not floating point types.

Lawrence
Nov 14 '05 #17
Jean-Claude Arbaut <je****************@laposte.net> wrote:
Le 14/06/2005 17:11, dans 3h************@individual.net, «*S.Tobias*»
<si***@FamOuS.BedBuG.pAlS.INVALID> a écrit*:
Jean-Claude Arbaut <je****************@laposte.net> wrote:
[snip all]

Could you please fix something in your reader, so that it doesn't
insert a space between "Re" and ":" in the subject? I think other
readers don't recognize "Re :" as "regarding" (or "reply"?) prefix
and add their own "Re:"; then probably your reader changes it to "Re :"
again, and the "game of life" restarts. In my reader in threads
menu I'll soon be seeing only "Re : Re : Re : Re : Re : Re : ...".


Sorry, I didn't see... The origin is Microsoft Entourage and its
interpretation of french language rule:


Actually, the origin is M$ <no matter which Usenet program> and its use
of a French language rule at all. The reply mark should be, literally,
"Re: "; pretending that there is such a thing as "French Usenet rules"
and translating "Re: " into anything else, no matter what, is a sign of
great, incurable, and probably intentional lositude. I suppose we
shouldn't complain because it's a mercy they haven't tried to translate
the actual Usenet _headers_, but it's still moronically arrogant to do a
thing like this.
This rant directed at Redmond, not at you.

Richard
Nov 14 '05 #18
In article <42****************@news.xs4all.nl>,
rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote:
Actually, the origin is M$ <no matter which Usenet program> and its use
of a French language rule at all. The reply mark should be, literally,
"Re: "; pretending that there is such a thing as "French Usenet rules"
and translating "Re: " into anything else, no matter what, is a sign of
great, incurable, and probably intentional lositude. I suppose we
shouldn't complain because it's a mercy they haven't tried to translate
the actual Usenet _headers_, but it's still moronically arrogant to do a
thing like this.
This rant directed at Redmond, not at you.


A bug that has cost some european Microsoft customers tons of money:

Create an Excel spreadsheet. Enter numbers. Set cell formatting to
"Currency". The numbers will be displayed in your local currency.

email that spreadsheet to someone in a different country. They open it,
the numbers come out in _their_ currency. Say you write an offer to
build some stuff for $100,000 which is a decent price. Your customer in
the UK reads £100,000 which is absurdly expensive. You lose a contract.
Nov 14 '05 #19
Christian Bau <ch***********@cbau.freeserve.co.uk> wrote:
In article <42****************@news.xs4all.nl>,
rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote:
Actually, the origin is M$ <no matter which Usenet program> and its use
of a French language rule at all.


A bug that has cost some european Microsoft customers tons of money:

Create an Excel spreadsheet. Enter numbers. Set cell formatting to
"Currency". The numbers will be displayed in your local currency.

email that spreadsheet to someone in a different country. They open it,
the numbers come out in _their_ currency. Say you write an offer to
build some stuff for $100,000 which is a decent price. Your customer in
the UK reads £100,000 which is absurdly expensive. You lose a contract.


Ow... that's even worse than the one where they'd translate not just the
static text in Excel, but even the identifiers of their macro language.
Imagine that, to compile an English C program in the Netherlands, you'd
have to translate all fread() calls to blees(), and all size_t's to
grootte_t... Well, that's exactly what was necessary with that version
of Excel.

Richard
Nov 14 '05 #20

Le 15/06/2005 10:35, dans 42****************@news.xs4all.nl, «*Richard Bos*»
<rl*@hoekstra-uitgeverij.nl> a écrit*:
Christian Bau <ch***********@cbau.freeserve.co.uk> wrote:
In article <42****************@news.xs4all.nl>,
rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote:
Actually, the origin is M$ <no matter which Usenet program> and its use
of a French language rule at all.


A bug that has cost some european Microsoft customers tons of money:

Create an Excel spreadsheet. Enter numbers. Set cell formatting to
"Currency". The numbers will be displayed in your local currency.

email that spreadsheet to someone in a different country. They open it,
the numbers come out in _their_ currency. Say you write an offer to
build some stuff for $100,000 which is a decent price. Your customer in
the UK reads £100,000 which is absurdly expensive. You lose a contract.


Ow... that's even worse than the one where they'd translate not just the
static text in Excel, but even the identifiers of their macro language.
Imagine that, to compile an English C program in the Netherlands, you'd
have to translate all fread() calls to blees(), and all size_t's to
grootte_t... Well, that's exactly what was necessary with that version
of Excel.


I know, I had a french Excel once... Awful, even for a french.
Everybody knows IF, FOR, etc... Why use anything else ?

Nov 14 '05 #21
On Wed, 15 Jun 2005 06:19:19 GMT, in comp.lang.c ,
rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote:
Actually, the origin is M$ <no matter which Usenet program> and its use
of a French language rule at all. The reply mark should be, literally,
"Re: ";


At least they still spell it "Re". Lotus Notes spells it arr e-acute-
eff space colon. Gah
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 14 '05 #22
On Wed, 15 Jun 2005 08:08:42 +0100, in comp.lang.c , Christian Bau
<ch***********@cbau.freeserve.co.uk> wrote:
A bug that has cost some european Microsoft customers tons of money:

Create an Excel spreadsheet. Enter numbers. Set cell formatting to
"Currency". The numbers will be displayed in your local currency.
I don't recall seeing this, and I worked for a french bank for 10
years, so we frequently exchanged spreadsheets from both English and
French excel.
email that spreadsheet to someone in a different country. They open it,
the numbers come out in _their_ currency. Say you write an offer to
build some stuff for $100,000 which is a decent price. Your customer in
the UK reads £100,000 which is absurdly expensive. You lose a contract.


actually it would come out as £100.000 which is absurdly cheap, since
the comma in french excel means dot in english...

Ah, l'internationalization, es ist zehr annoying, niet?
:-)
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 14 '05 #23
In article <ht********************************@4ax.com> Mark McIntyre <ma**********@spamcop.net> writes:
On Wed, 15 Jun 2005 06:19:19 GMT, in comp.lang.c ,
rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote:
Actually, the origin is M$ <no matter which Usenet program> and its use
of a French language rule at all. The reply mark should be, literally,
"Re: ";


At least they still spell it "Re". Lotus Notes spells it arr e-acute-
eff space colon. Gah


Yes, there is much confusion about it. It is from Latin and does not refer
to any English word. "In re".
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Nov 14 '05 #24
Mark McIntyre <ma**********@spamcop.net> wrote:
On Wed, 15 Jun 2005 06:19:19 GMT, in comp.lang.c ,
rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote:
Actually, the origin is M$ <no matter which Usenet program> and its use
of a French language rule at all. The reply mark should be, literally,
"Re: ";


At least they still spell it "Re".


Or, in some versions, "Sv:". There is no limit to the idiocy of this
company.

Richard
Nov 14 '05 #25

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

Similar topics

9
by: YoBro | last post by:
Hi, Is this possible, if so how would you go about it. I have a reasonably large form that includes 6 file input fields. I wanted to create an option to allow the user to reset only the file...
12
by: deko | last post by:
Is there a way to reset the AutoNumber sequence? I have several tables that use the AutoNumber field as the Primary Key, and I'd like to somehow do an Import/Export that will make remove the...
5
by: uydo\(kiboga\) | last post by:
Hello, I have to write a program that reads from a text file into a structure. Every line in the file looks like this: "1234","first.last","password" I dont know if there is a function to pass...
4
by: Lee Chapman | last post by:
Hi, Can anyone tell me why in the code below, the call to ClearChildViewState() has no effect? To paraphrase the code: I'm using view state. I have a textbox and a submit button (and a label...
5
by: cotton_gear | last post by:
Hello, When I clicked on the Reset button I need to reset only few fields selectively. How do i achieve it using javascrript ? Actually, when reset is clicked, even hidden fields are reset. I...
8
by: devaraj.takhellambam | last post by:
Hi, I am hoping to get some help from you. Basically, I have a structure in my c program and the structure is used to store the values of a table row by row and does some processing. At the...
3
by: bill | last post by:
All, I have the following: ...... unsafe public struct Example { public double we;
2
by: Sheikko | last post by:
Hi, I have a class, cerated like a struc for some reasons, and I want to reset all values in it. public class MyClass { public byte Channel; public byte SatelliteID; public byte SyncFlags;...
16
by: sreemati | last post by:
Hi everyone, This is the scenario: I have two button - Submit and Reset Submit is used for validation and after validation is passed it passes it to another form to enter into database. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.