R
raashid bhatt
what is restrict keyword used for?
eg int *restrict p;
eg int *restrict p;
what is restrict keyword used for?
eg int *restrict p;
Pardon my ignorance, but to what document does that string of numbers
refer?
Pilcrow said:Pardon my ignorance, but to what document does that string of numbers
refer?
See 6.7.3.1 Formal definition of restrict.
Pardon my ignorance, but to what document does that string of numbers
refer?
Lewis Carroll - Alice's Adventures in Wonderland
[...]Bartc said:Usually to one of the two C standards documents, C90 and C99. I think
the numbering is identical, at least for common sections.
Pilcrow said:Pardon my ignorance, but to what document does that string of
numbers refer?
Nick Keighley said:the (or a) C standard. In this case it will be the ISO
1999 C Standard (aka C99). Earlier versions of the standard
did not include restict. Here's a draft of the standard,
the paragraph numbers don't tie up tho :-(
http://wwwold.dkuug.dk/jtc1/sc22/open/n2794/n2794.txt
Nick Keighley said:google "c restrict" gives many hits. This is the first I got
http://developers.sun.com/solaris/articles/cc_restrict.html
basically "restrict" qualified parameters specify that
there is no aliasing going on
int f (restict int *a, restrict int *b)
Keith Thompson said:That's a plain-text version of a pre-C99 draft, dated August 3, 1998.
(It's actually N843; I wonder why the file is called n2794.txt.)
Because the complete numbers are WG14/N843 and SC22/N2794: the working
group's document was redistributed by the parent subcommittee and thus
given one of their document numbers.
Was that really necessary? It was a reasonable question.
No it wasn't, it was a silly post.
However, I'm suspicious of this Pilcrow person. He talks to kenny and
twink a bit too much. Maybe he's just a usenet/clc newbie...
I was referring to ISO/IEC 9899:1999.
... and the value of ("kenny" == "kenny") is unspecified.
(e-mail address removed) said:
He is neither. Nor is he particularly fond of jumping to conclusions on the
basis of insufficient data.
That's up to you.
Keith Thompson said:Well, I'm glad it's not confusing or anything.
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.