473,802 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is wrong?

Hi everybody!
I have this function:

int Scan(char String[])
{
printf("%s", String);
}

it works but when I try to pass a dotted string o separetad with (" ",
"_" , "-" ...ecc)
it return only first word.
I pass the string in this way:

char CString[] = "I.am.an.exampl e";
Scan(CString);

What's wrong?
Help me please!
Thx!

Jul 4 '06
28 2943
On 04/07/2006 22:50, Andrew Poelstra wrote:
>
I read some helpful replies, and I read you refusing them. I certainly
can't see how it would be worth my time to go reread those; I myself
pointed out the problems with your code.
If I understood correctly, Suman and the OP are not the same person,
which is what you appear to be assuming. I presume that what Suman was
trying to point out to Richard Bos was that he didn't take into account
that a terminating newline is not being output on the stream in his
example and, therefore, that it is not certain that the output will be
displayed. His declaration of disbelief was probably in reference of
that fact.

--
Denis Kasak
Jul 5 '06 #21

Mark McIntyre wrote:
On 4 Jul 2006 13:28:48 -0700, in comp.lang.c , "Suman"
<sk*****@gmail. comwrote:

Andrew Poelstra wrote:
On 2006-07-04, Suman <sk*****@gmail. comwrote:

Richard Bos wrote:
"Suman" <sk*****@gmail. comwrote:
[ ...]
<fumes>
I don't understand why you'd need such an analogy, for all _I_ care.

If you reorganize that sentence, you said "For all I care, I don't
1understand..." (I didn't change the grammatical meaning
whatsoever).

I wanted to know why Richard Bos needed that analogy. Period.

Then you might want to have said that.
<g>I had to, eventually! </g>
What you instead said was "I don't understand why you need that analogy,
I don't care". Which makes no sense!
Alright! Now I see what went wrong.
Slip-ups happen, you'd better take them in stride.

In most cases, it's best to stop and fix slip-ups, especially in
mission-critical code. That isn't what "take in stride" means, just
so you know.
Re-read. For all you know, you might start reading a bit more into my
post.

Frankly, as a native english speaker, I was pretty confused as to what
you meant.
By teh way, if you plan to criticize people's code, you should make
your criticism explicit.
I didn't mean it to be so. Richard Bos, like most others, has a
penchant for
std-correctness when it comes to C, as far as I have noted. I had meant

my post to be supplementary material to Richard's post. At the same
time I had *tried* to express my surprise at the fact that Richard
missed out
on this. A rather harmless expression of astonishment that went wrong
due to a rather
obtuse (ab-)use of the English language.
"I don't believe you"
See above. Did you miss the link to Ben Pfaff's post?
and "I expect you to be
vigilant" without any supporting evidence does not give anyone any
reason to take your posts seriously.
Richard's reply confused me. I would've appreciated had he put a
easier-to-read
-for-non-native-English-speakers reply and owning up to the fact that
he was
relying on implementation dependant behavior and which in general is
frowned
upon in this newsgroup.

Jul 5 '06 #22
Suman said:

<snip>
>
Richard Bos, like most others, has a penchant for std-correctness
when it comes to C,
Yes, and that's good.

<snip>
>
Richard's reply confused me. I would've appreciated had he put a
easier-to-read-for-non-native-English-speakers reply
I hope you appreciate that Richard Bos is not a native English speaker, so
perhaps you should go easy on him. (As far as I'm aware, he's Dutch.)

<snip>

--
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)
Jul 5 '06 #23
"Suman" <sk*****@gmail. comwrote:
Mark McIntyre wrote:
On 4 Jul 2006 13:28:48 -0700, in comp.lang.c , "Suman" <sk*****@gmail. comwrote:
>Re-read. For all you know, you might start reading a bit more into my
>post.
Frankly, as a native english speaker, I was pretty confused as to what
you meant.
By teh way, if you plan to criticize people's code, you should make
your criticism explicit.

I didn't mean it to be so. Richard Bos, like most others, has a penchant for
std-correctness when it comes to C, as far as I have noted. I had meant
my post to be supplementary material to Richard's post. At the same
time I had *tried* to express my surprise at the fact that Richard
missed out on this.
I had not; if you'd read correctly, you'd have noted that I only claimed
what that code did on _my_ system, plus the conclusion we can draw from
that - that it's not that code itself which was at fault.
and "I expect you to be
vigilant" without any supporting evidence does not give anyone any
reason to take your posts seriously.

Richard's reply confused me. I would've appreciated had he put a
easier-to-read-for-non-native-English-speakers reply
You don't read headers much, do you?
and owning up to the fact that
You make it sound like a crime. Don't be so silly.

Richard
Jul 6 '06 #24
Andrew Poelstra <ap*******@loca lhost.localdoma inwrote:
On 2006-07-04, Suman <sk*****@gmail. comwrote:
If you reorganize that sentence, you said "For all I care, I don't
understand..." (I didn't change the grammatical meaning whatsoever).
I wanted to know why Richard Bos needed that analogy. Period.

Which analogy? If you mean the pentagonal earth one, I think he was trying
to help you understand that you can't respond to helpful replies with "I
don't believe you" and expect to be taken seriouly.
Precisely. If Suman wants to disbelieve the plain truth, that's his
problem, not mine.

Richard
Jul 6 '06 #25

Richard Bos wrote:
"Suman" <sk*****@gmail. comwrote:
[...]
Richard's reply confused me. I would've appreciated had he put a
easier-to-read-for-non-native-English-speakers reply

You don't read headers much, do you?
Never, actually. May I ask how relevant that is? The non-native English
speaker part
was a reference to myself. Read the previous sentence.It confused *me*.
So how does my not reading the header fit in here?Seems most people got
me
wrong.
and owning up to the fact that

You make it sound like a crime. Don't be so silly.
You sounded snooty (to me).

Jul 6 '06 #26
Suman said:
>
Richard Bos wrote:
>"Suman" <sk*****@gmail. comwrote:
[...]
Richard's reply confused me. I would've appreciated had he put a
easier-to-read-for-non-native-English-speakers reply

You don't read headers much, do you?

Never, actually. May I ask how relevant that is?
Very. It would have given you a hint that Richard Bos is not a native
English-speaker himself, so your criticism of his English style is poorly
aimed.
The non-native English speaker part was a reference to myself.
You are not the only non-native English speaker here. Richard Bos is another
such person.
Read the previous sentence.It confused *me*. So how does my not reading
the header fit in here?
Reading the header would have helped you to learn that Richard Bos is not a
native English-speaker.
Seems most people got me wrong.
Seems you got Richard Bos wrong.

and owning up to the fact that

You make it sound like a crime. Don't be so silly.

You sounded snooty (to me).
Perhaps that's because Richard Bos is not a native English-speaker, and thus
cannot reasonably be held to account for misunderstandin gs of tone.

In case you haven't worked it out yet, Richard Bos is not a native
English-speaker.

--
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)
Jul 6 '06 #27
In article <11************ **********@m79g 2000cwm.googleg roups.com>,
Suman <sk*****@gmail. comwrote:
>
Richard Bos wrote:
>"Suman" <sk*****@gmail. comwrote:
[...]
Richard's reply confused me. I would've appreciated had he put a
easier-to-read-for-non-native-English-speakers reply

You don't read headers much, do you?

Never, actually. May I ask how relevant that is? The non-native English
speaker part was a reference to myself. Read the previous sentence.It
confused *me*. So how does my not reading the header fit in here?Seems
most people got me wrong.
Well, the logic, such as it is, goes like this. An NNSoE (non-native
speaker of English) makes a comment along the lines of "It is hard for
me, being an NNSoE, to understand what you wrote". This carries an
implication that the prose in question was not as clearly written as it
might have been (*). This, then, causes the friends of the poster (**) of
the prose in question, to gather around and get all upset at the
perceived insult (to the poster of the prose in question). They, then,
will come to the aid of their friend, and one way to do so is to point
out that the poster of the prose in question is an NNSoE and thus cannot
be held to the same standards of grammar/spelling/etc as would an NSoE.
That's what happened here. And, note that in the shuffle of this
process of this circling-of-the-wagons, the fact that the original
reference to an NNSoE was self-referential and not in any sense an
insult, gets lost.

(*) And note that this implication is usually correct.
(**) See, especially, the first URL quoted below.

Useful clc-related links:

http://en.wikipedia.org/wiki/Clique
http://en.wikipedia.org/wiki/Aspergers
http://en.wikipedia.org/wiki/C_programming_language

Jul 6 '06 #28
"Suman" <sk*****@gmail. comwrote:
Richard Bos wrote:
"Suman" <sk*****@gmail. comwrote:
[...]
Richard's reply confused me. I would've appreciated had he put a
easier-to-read-for-non-native-English-speakers reply
You don't read headers much, do you?

Never, actually. May I ask how relevant that is?
It's relevant in that it was perfectly easy to read for _me_, also a
non-native speaker of English.

Richard
Jul 7 '06 #29

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

Similar topics

125
14865
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
5
2840
by: titan0111 | last post by:
#include<iostream> #include<iomanip> #include<cstring> #include<fstream> using namespace std; class snowfall { private: int ft;
72
5905
by: E. Robert Tisdale | last post by:
What makes a good C/C++ programmer? Would you be surprised if I told you that it has almost nothing to do with your knowledge of C or C++? There isn't much difference in productivity, for example, between a C/C++ programmers with a few weeks of experience and a C/C++ programmer with years of experience. You don't really need to understand the subtle details or use the obscure features of either language
121
10192
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
28
3284
by: Madhur | last post by:
Hello what about this nice way to open a file in single line rather than using if and else. #include<stdio.h> void main() { FILE *nd; clrscr(); fopen("c:\\autoexec.bat","r")&&printf("success") || printf("error opeing
56
4347
by: Cherrish Vaidiyan | last post by:
Frinds, Hope everyone is doing fine.i feel pointers to be the most toughest part in C. i have just completed learning pointers & arrays related portions. I need to attend technical interview on C. wat type of questions should be expected? Which part of C language do the staff give more concern? The interviewers have just mentioned that .. i will have interview on C. Also can anyone can help me with sites where i can go thru sample
46
4264
by: Keith K | last post by:
Having developed with VB since 1992, I am now VERY interested in C#. I've written several applications with C# and I do enjoy the language. What C# Needs: There are a few things that I do believe MSFT should do to improve C#, however. I know that in the "Whidbey" release of VS.NET currently
13
5063
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
9
2126
by: Pyenos | last post by:
import cPickle, shelve could someone tell me what things are wrong with my code? class progress: PROGRESS_TABLE_ACTIONS= DEFAULT_PROGRESS_DATA_FILE="progress_data" PROGRESS_OUTCOMES=
3
2152
by: Siong.Ong | last post by:
Dear all, my PHP aims to update a MySQL database by selecting record one by one and modify then save. Here are my PHP, but I found that it doesnt work as it supposed to be, for example, when Record (i) is shown and modified, the change will come to Record (i+1). Can anyone provide suggestion? thanks.
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10305
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
10285
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
10063
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
7598
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
5494
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
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
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 we have to send another system
3
2966
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.