473,396 Members | 1,864 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,396 software developers and data experts.

Trigraph sequences


Hello,

while reading through iso c standard (August 3, 1998), I noticed
something I had never heard of in C: "Trigraph sequences", 5.2.1.1

The standard says:
"All occurrences in a source file of the following sequences of
three characters (called trigraph sequences)) are replaced with
the corresponding single character."

EXAMPLE

The following source line
printf("Eh???/n");

becomes (after replacement of the trigraph sequence ??/)
printf("Eh?\n");

Does this mean i can write something as obfuscated as:

--
??=include <stdio.h>

int
main(void)
??<
printf("hello world??\n");
??>
--

P.Krumins
Nov 13 '05 #1
2 2706
In article <Xn*******************************@130.133.1.4>, Peteris Krumins wrote:
[cut]
Does this mean i can write something as obfuscated as:

[code using trigraphs]
Yes.
--
Andreas Kähäri
Nov 13 '05 #2

"Andreas Kahari" <ak*******@freeshell.org> wrote in message
news:sl**********************@vinland.freeshell.or g...
In article <Xn*******************************@130.133.1.4>, Peteris Krumins wrote: [cut]
Does this mean i can write something as obfuscated as:

[code using trigraphs]
Yes.

Of course, it doesn't mean you *should*.

--
poncho
Nov 13 '05 #3

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

Similar topics

3
by: Jeff Winkler | last post by:
I've come up with a trigraph idiom, am curious if it's been done before (probably). I like to use trigraphs occasionally. Scenario: I'm doing an RSS->Javascript conversion for our intranet. I'd...
4
by: temp | last post by:
Hi All, I wonder could someone help me with this? What I want to do is search through a list of letters and look for adjacent groups of letters that form sequences, not in the usual way of...
10
by: Vilson farias | last post by:
Greetings, I'm getting a big performance problem and I would like to ask you what would be the reason, but first I need to explain how it happens. Let's suppose I can't use sequences (it seams...
4
by: Hemant Shah | last post by:
Folks, I have created bunch of sequences in DB2 7.2. How do I list all the defined sequences and if possible their current values? Thanks. --
2
by: junky_fellow | last post by:
What is the practical significance of having trigraph sequences ?
18
by: Bruno Baguette | last post by:
Hello, I have to design a table wich will store some action reports. Each report have an ID like this 1/2004, 2/2004, ... and each years, they restart to 1 (1/2004, 1/2005, 1/2006,...). So, I...
5
by: Michael Fuhr | last post by:
I'd like to propose that certain GRANTs on a table cascade to the table's implicit sequences. In the current implementation (as of 7.4.5 and 8.0.0beta3), a table owner must typically issue GRANT...
2
by: Ravi | last post by:
Why is the trigraph processing reqd.?
4
by: JJ | last post by:
Is there a way of checking that a line with escape sequences in it, has no strings in it (apart from the escape sequences)? i.e. a line with \n\t\t\t\t\t\t\t\r\n would have no string in it a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
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...

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.