473,668 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

missing a char

1 1 1 1 1 1
2 2 2 1 1 1
3 3 3 1 1 1
4 4 1 2 1 1
5 5 2 2 1 1
6 6 3 2 1 1
7 7 1 3 1 1
8 8 2 3 1 1
9 9 3 3 1 1
10 10 1 1 2 1
11 11 2 1 2 1
12 12 3 1 2 1
13 13 1 2 2 1
14 14 2 2 2 1
15 15 3 2 2 1
16 16 1 3 2 1
17 17 2 3 2 1
18 18 3 3 2 1
19 19 1 1 3 1
20 20 2 1 3 1
21 21 3 1 3 1
22 22 1 2 3 1
23 23 2 2 3 1
24 24 3 2 3 1
25 25 1 3 3 1
26 26 2 3 3 1
27 27 3 3 3 1
28 28 1 1 1 2
29 29 2 1 1 2
30 30 3 1 1 2
31 31 1 2 1 2
32 32 2 2 1 2
33 33 3 2 1 2
34 34 1 3 1 2
35 35 2 3 1 2
36 36 3 3 1 2
37 37 1 1 2 2
38 38 2 1 2 2
39 39 3 1 2 2
40 40 1 2 2 2
41 41 2 2 2 2
42 42 3 2 2 2
43 43 1 3 2 2
44 44 2 3 2 2
45 45 3 3 2 2
46 46 1 1 3 2
47 47 2 1 3 2
48 48 3 1 3 2
49 49 1 2 3 2
50 50 2 2 3 2
51 51 3 2 3 2
52 52 1 3 3 2
53 53 2 3 3 2
54 54 3 3 3 2
55 55 1 1 1 3
56 56 2 1 1 3
57 57 3 1 1 3
58 58 1 2 1 3
59 59 2 2 1 3
60 60 3 2 1 3
61 61 1 3 1 3
62 62 2 3 1 3
63 63 3 3 1 3
64 64 1 1 2 3
65 65 2 1 2 3
66 66 3 1 2 3
67 67 1 2 2 3
68 68 2 2 2 3
69 69 3 2 2 3
70 70 1 3 2 3
71 71 2 3 2 3
72 72 3 3 2 3
73 73 1 1 3 3
74 74 2 1 3 3
75 75 3 1 3 3
76 76 1 2 3 3
77 77 2 2 3 3
78 78 3 2 3 3
79 79 1 3 3 3
80 80 2 3 3 3
81 81 3 3 3 3
EOF
This longish post is crossposted to comp.lang.c and to comp.lang.fortr an .
I believe that I have simulated setting the follow-ups by writing the
message on notepad and posting as if the other ng didn't exist.

I redirected this output to a text file that my OS believes is 3078 bytes in
length. There are six fields of six chars and 81 lines. 36 times 81 is
2916. Add in 81 carriage returns and you have 2997. Besides missing good
vision, I seem to be missing a char on every line. Ideas? EC
Oct 5 '06 #1
8 2121
Elijah Cardon said:

<snip>
I redirected this output to a text file that my OS believes is 3078 bytes
in
length. There are six fields of six chars and 81 lines. 36 times 81 is
2916. Add in 81 carriage returns and you have 2997. Besides missing good
vision, I seem to be missing a char on every line. Ideas? EC
You forgot newlines. Each line comprises:

six fields of six characters = 36
one carriage return '\r' = 1
one newline '\n' = 1
----
38

38 * 81 = 3078

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Oct 5 '06 #2

Elijah Cardon wrote:
1 1 1 1 1 1
81 81 3 3 3 3
EOF
This longish post is crossposted to comp.lang.c and to comp.lang.fortr an .
Why?
I believe that I have simulated setting the follow-ups by writing the
message on notepad and posting as if the other ng didn't exist.
Why do we need to know this?
I redirected this output to a text file that my OS believes is 3078 bytes in
length. There are six fields of six chars and 81 lines. 36 times 81 is
2916. Add in 81 carriage returns and you have 2997. Besides missing good
vision, I seem to be missing a char on every line. Ideas? EC
1) learn about the text file format which applies to your OS
2) find out how to dump a file in hexadecimal format (or write a small
program to do the job)

Oct 5 '06 #3

"Richard Heathfield" <in*****@invali d.invalidwrote in message
news:rt******** *************** *******@bt.com. ..
Elijah Cardon said:

<snip>
>I redirected this output to a text file that my OS believes is 3078 bytes
in
length. There are six fields of six chars and 81 lines. 36 times 81 is
2916. Add in 81 carriage returns and you have 2997. Besides missing
good
vision, I seem to be missing a char on every line. Ideas? EC

You forgot newlines. Each line comprises:

six fields of six characters = 36
one carriage return '\r' = 1
one newline '\n' = 1
----
38

38 * 81 = 3078
Did you rely on methods that lie outside the realm of the C programming
language to determine this? Mr. Heathfield claims he can't program on the
fly, which is as large an exxageration there can be before it is a lie. My
guess is that he "knew" this, which is an odd thing to know about somebody
else's data. Comes from experience.

I further guess that if you set CBfalconer's ggets on the output, the unseen
chars would unpalimpsest. How does a person set the follow-ups to a
cross-post? EC
Oct 5 '06 #4
Elijah Cardon said:
Did you rely on methods that lie outside the realm of the C programming
language to determine this?
If you want to play games, please do it elsewhere. You asked a question, and
got the right answer. If you don't like the right answer, don't ask the
question.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Oct 5 '06 #5
Elijah Cardon wrote:

This longish post is crossposted to comp.lang.c and to
comp.lang.fortr an .
No, it wasn't. You may have posted it to clf as well, but that's not a
cross-post.


Brian
Oct 5 '06 #6

"Elijah Cardon" <in*****@invali d.netwrote in message
news:12******** *****@corp.supe rnews.com...
>
"Richard Heathfield" <in*****@invali d.invalidwrote in message
news:rt******** *************** *******@bt.com. ..
Elijah Cardon said:

<snip>
I redirected this output to a text file that my OS believes is 3078
bytes
in
length. There are six fields of six chars and 81 lines. 36 times 81
is
2916. Add in 81 carriage returns and you have 2997. Besides missing
good
vision, I seem to be missing a char on every line. Ideas? EC
You forgot newlines. Each line comprises:
<snip>
38 * 81 = 3078
Did you rely on methods that lie outside the realm of the C programming
language to determine this?
Yes, he did. But, __unfortunately __, he didn't have to. This was snipped
from working code of mine...(so you'll have to add the includes,etc... ):

#define NLSZ 10
FILE *nlf;
unsigned char nl[NLSZ],nl_sz=0;

/* determine actual binary values for text newline */
memset(nl,0,NLS Z);
nlf=fopen("newl ine0.xxx","wt") ;
fprintf(nlf,"\n ");
fclose(nlf);
nlf=fopen("newl ine0.xxx","rb") ;
while((!feof(nl f))&&(nl_sz<NLS Z))
{
nl[nl_sz++]=fgetc(nlf);
}
nl_sz--;
nl[nl_sz]='\0';
fclose(nlf);
remove("newline 0.xxx");
Mr. Heathfield claims he can't program on the
fly, which is as large an exxageration[sic] there can be before it is a
lie. My
guess is that he "knew" this, which is an odd thing to know about somebody
else's data. Comes from experience.
Yes, he "knew" this.

What's surprising is that he didn't (as he has done in the past) describe
common ASCII return sequences: cr, lf, crlf. And, he didn't bring up EBCDIC
or DEC VMS return sequence. And, he didn't bring up the fact that EBCDIC
isn't standardized, or the fact that there are at least 8 common variants of
EBCDIC, or the fact that HP, AT&T, POSIX, and IBM (5) all have variants, or
the fact that there 82 invariant character positions and 13 variant
positions in EBCDIC. Etc...
I further guess that if you set CBfalconer's ggets on the output, the
unseen
chars would unpalimpsest.
Although "palimpsest " is used in a very unusual manner and the F in
CBFalconer is capitalized, it still deservers a hearty "hehe"... :-) Yes,
CBFalconer's code is... Well, all you have to do is compare his strlcat()
and strlcpy() with Russ Albery's Public Domain INN versions...
How does a person set the follow-ups to a
cross-post? EC
Ignoring the fact that you didn't "cross-post," but "multi-posted," there
should be a header line for it when composing your email for nntp. The line
will automatically redirect any replies to that _specific_ post to the
followup newsgroup. It doesn't redirect the entire thread. You should
always check to make sure someone didn't change the sent to newsgroups on
you, and you many need to reset them before you send your reply. It may be
an advanced feature... The line for MS Outlook is called: "Followup-To",
and it should be at the same place where lines like "News Server",
"Newsgroups ", "CC", "Reply-To" are. So, since I set the follows for this
message to "alt.comp.lang. c", anyone replying to this message should see
"alt.comp.lang. c" in the "Newsgroups " line instead of "comp.lang. c". Try
replying to this message.

:-)
Rod Pemberton
Oct 6 '06 #7

"Rod Pemberton" <do*********@bi tfoad.cmmwrote in message
news:eg******** **@main.corriga .net...
>
"Elijah Cardon" <in*****@invali d.netwrote in message
news:12******** *****@corp.supe rnews.com...
>>
"Richard Heathfield" <in*****@invali d.invalidwrote in message
news:rt******* *************** ********@bt.com ...
Elijah Cardon said:

<snip>

I redirected this output to a text file that my OS believes is 3078
bytes
>in
length. There are six fields of six chars and 81 lines. 36 times 81
is
>2916. Add in 81 carriage returns and you have 2997. Besides missing
good
vision, I seem to be missing a char on every line. Ideas? EC

You forgot newlines. Each line comprises:
<snip>
38 * 81 = 3078
>Did you rely on methods that lie outside the realm of the C programming
language to determine this?

Yes, he did. But, __unfortunately __, he didn't have to. This was snipped
from working code of mine...(so you'll have to add the includes,etc... ):

#define NLSZ 10
FILE *nlf;
unsigned char nl[NLSZ],nl_sz=0;

/* determine actual binary values for text newline */
memset(nl,0,NLS Z);
nlf=fopen("newl ine0.xxx","wt") ;
fprintf(nlf,"\n ");
fclose(nlf);
nlf=fopen("newl ine0.xxx","rb") ;
while((!feof(nl f))&&(nl_sz<NLS Z))
{
nl[nl_sz++]=fgetc(nlf);
}
nl_sz--;
nl[nl_sz]='\0';
fclose(nlf);
remove("newline 0.xxx");
I'll feed this to my compiler when she gets hungry.
What's surprising is that he didn't (as he has done in the past) describe
common ASCII return sequences: cr, lf, crlf. And, he didn't bring up
EBCDIC
or DEC VMS return sequence. And, he didn't bring up the fact that EBCDIC
isn't standardized, or the fact that there are at least 8 common variants
of
EBCDIC, or the fact that HP, AT&T, POSIX, and IBM (5) all have variants,
or
the fact that there 82 invariant character positions and 13 variant
positions in EBCDIC. Etc...
A merciful act.
>I further guess that if you set CBfalconer's ggets on the output, the
unseen
>chars would unpalimpsest.

Although "palimpsest " is used in a very unusual manner and the F in
CBFalconer is capitalized, it still deservers a hearty "hehe"... :-) Yes,
CBFalconer's code is... Well, all you have to do is compare his strlcat()
and strlcpy() with Russ Albery's Public Domain INN versions...
>How does a person set the follow-ups to a
cross-post? EC

Ignoring the fact that you didn't "cross-post," but "multi-posted," there
should be a header line for it when composing your email for nntp. The
line
will automatically redirect any replies to that _specific_ post to the
followup newsgroup. It doesn't redirect the entire thread. You
should
always check to make sure someone didn't change the sent to newsgroups on
you, and you many need to reset them before you send your reply. It may
be
an advanced feature... The line for MS Outlook is called: "Followup-To",
and it should be at the same place where lines like "News Server",
"Newsgroups ", "CC", "Reply-To" are. So, since I set the follows for this
message to "alt.comp.lang. c", anyone replying to this message should see
"alt.comp.lang. c" in the "Newsgroups " line instead of "comp.lang. c". Try
replying to this message.
dankenstein, lane
Oct 13 '06 #8

<ma**********@p obox.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
>
Elijah Cardon wrote:
>1 1 1 1 1 1
81 81 3 3 3 3
EOF
This longish post is crossposted to comp.lang.c and to comp.lang.fortr an
.

Why?
When I'm missing something, it bugs me. I don't like bugs. The cockroaches
here in River City I kill with impunity. Unfortunately, I'm running on MS
and chasing after a bug can turn into an Opus Magnum. Oops, did I say
'Jehovah'?
>I believe that I have simulated setting the follow-ups by writing the
message on notepad and posting as if the other ng didn't exist.

Why do we need to know this?
See upthread.
>I redirected this output to a text file that my OS believes is 3078 bytes
in
length. There are six fields of six chars and 81 lines. 36 times 81 is
2916. Add in 81 carriage returns and you have 2997. Besides missing
good
vision, I seem to be missing a char on every line. Ideas? EC

1) learn about the text file format which applies to your OS
2) find out how to dump a file in hexadecimal format (or write a small
program to do the job)
If you're on xp and programming in c, why would do something that you'd do
with the microwave you took out of the trash? LS
Oct 13 '06 #9

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

Similar topics

1
1644
by: bradleyc | last post by:
Definately need my eyes checked... Error:asstester.cpp(300,1):Declaration missing ; Error:asstester.cpp(300,1):Compound statement missing } void doModify() { clrscr(); char inputv, input1, input2;
3
2309
by: Adolfo López Escribano | last post by:
I'm try to launch db2Backup from Borland Delphi, but I obtain an undocumented SQLCODE -1152. Any idea? My code is the next: Type Tsqlca = record sqlcaid: Array of Char; sqlcabc: LongInt; sqlcode: LongInt;
3
13943
by: Old Wolf | last post by:
For the following code: struct S { char t; int flags; }; void func(void) {
6
1819
by: Marko | last post by:
Hello all, I hope someone can help me; if got a value in a cell (040 1234567), when I run a query in the Analyser I got as respons only 40 1234567, so missing the zero (0) not the whole number is displayed. When I run a query on a cell with value 1234567 I received the number 1234567 and that's oke. The Data Type of the Column is Char. Thanks,
2
1637
by: teddysnips | last post by:
SQL 2k, DDL below. I have a simple table with the following data: fldYear fldCode1 fldCode2 2000 ABC1 ABC12 2000 ABC1 ABC13 2001 ABC1 ABC12 2002 ABC1 ABC12 2002 ABC1 ABC13
12
2310
by: tfelb | last post by:
Hi all! I bought the book "Programming in C" by Stephen G Kochan. I miss 2 answers at his website. (removestr and the substr function) How can I implement these functions? It would be wonderful if someone can help me out, because Stephen Kochan is not reachable. Thanks for any help
2
1533
by: teneesh | last post by:
I'm trying to create a function and the error I keep receiving is that I am missing a ')' in line 34. Line 34 in SQL Server is in bold below: from schedule s, serviceward w, (select distinct conftype from confattnsrvrate where acyear=@acyear) c Here is all the code for the function. set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go
5
3867
by: maury | last post by:
Hello, I have a DB table with data filled from a weather sensor probe, I have one row every 10 minutes and the data fields is not in DateTime format but in string format: yyyyMMddHHmm So for example I have 200804140340 200804140350 200804140400 200804140410
9
22227
by: dissectcode | last post by:
I couldn't find an anser on google...The following code is a tiny made-up example showing the problem I am looking at, at work. I have a struct: struct door_t { BOOL color; BOOL size; char name; char keys; }
0
8890
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8791
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8575
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8653
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6206
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5677
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4202
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1783
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.