S
sathyashrayan
Debashis, do you need all this!. Think before you post anything in this group.
Joona I Palaste said:I find it amazing how a C coder's competence is usually inversely
proportional to his/her usage of "U" and "ur" instead of "you" and
"your". Is it written somewhere in stone or is it just a rule of
thumb?
friends,
Well, hold it for a second and go through the below given link.
Thomas said:There is also memcmp().
Joona I Palaste said:ROSY <[email protected]> scribbled the following:PS. Please don't top-post.
http://www.faqs.org/docs/jargon/T/top-post.html This link is for
Debashis who may not be knowing what is top-post. In simpler terms,
top-post means posting answers above the questions.
[correct format...]
DebashisWhat is your name?
[wrong format...]
DebashisWhat is your name?
DebashisWhat is your name?
Default User said:*plonk*
Brian Rodenborn
ROSY said:U want 2 answer the levels of question,i think ur rubbish again,the questions
**** urself understand.if u take challenge then i'm going on further.But if u
dont give any response ur jugglery come 2 at an end.
Really ur fooing the bar.
It is best 2 not spoke ur nose on this matter.
bye,
U want 2 answer the levels of question,i think ur rubbish again,the questions
**** urself understand.if u take challenge then i'm going on further.But if u
dont give any response ur jugglery come 2 at an end.
Really ur fooing the bar.
pete said:Are you out of your MIND !?
OP's question is CLEARLY only about the string functions
which return type pointer to void, and which have side effects.
Anyway, the answer to the question is here:
http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/
ROSY said:U want 2 answer the levels of question,i think ur rubbish again,the questions
**** urself understand.if u take challenge then i'm going on further.But if u
dont give any response ur jugglery come 2 at an end.
Really ur fooing the bar.
Thomas Matthews said:I guess there isn't any convenient shorthand for "jugglery" or
"challenge". By the way (BTW), you (U) can shorten the word
"question" to "q's". If you can spend the extra time to type
out "your" instead of "ur" or "to" instead of "2", please don't
bother to type.
It is best 2 not spoke ur nose on this matter.
Thomas said:FYI, the mem*() functions are not string functions. The string
functions are str*(), and work with NULL terminated character
arrays.
They do have side effects, which is their behavior.
Try this one:
#define BUFFER_LENGTH 64
char result[BUFFER_LENGTH];
memset(result, '\0', 256);
pete said:Are you out of your MIND !?
OP's question is CLEARLY only about the string functions
which return type pointer to void, and which have side effects.
Anyway, the answer to the question is here:
http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/
FYI, the mem*() functions are not string functions. The string
functions are str*(), and work with NULL terminated character
arrays.
They do have side effects, which is their behavior.
Try this one:
#include <stdio.h>
#include <string.h>
#define BUFFER_LENGTH 64
int main(void)
{
const char * test_text = "How are you?\n\0\nMr. Potato?\n";
char result[BUFFER_LENGTH];
unsigned int i;
memset(result, '\0', 256);
/* string test */
strcpy(result, test_text);
for (i = 0; i < BUFFER_LENGTH; ++i)
{
putchar(result);
}
/* memcpy test */
memcpy(result, test_text, sizeof(*test_text));
for (i = 0; i < BUFFER_LENGTH; ++i)
{
putchar(result);
}
return 0;
}
Arthur J. O'Dwyer said:It is probably not significant that a Google Groups
search on "author:ROSY" suggests the "Related Groups"
of comp.lang.c.* and soc.sexuality.spanking...
In case, if you're not kidding, "author:name" is not the right
Google Groups search term. It should be rather "author:email" or just
"name"
---
"Never give in! Never give in! Never, Never, Never, Never ? in
nothing great or small, large or petty ? Never give in except to
convictions of honor and good sense." -- Sir Winston Churchill
http://guideme.itgo.com/atozofc/ - "A to Z of C" Project
Email: rrjanbiah-at-Y!com
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.