473,320 Members | 2,097 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,320 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 2701
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.