473,889 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A C tutorial

There is a C tutorial at
http://www.cs.virginia.edu/~lcc-win32
It is written to go with the compiler, available
at the same URL.

I have added quite a bit of material, and I would be
glad if people in this group give it a try and tell me if
I am saying nonsense somewhere.

Beware that I am not very orthodox, hence my tutorial
(and the associated compiler) is not just a tutorial about
ANSI C, but covers things like operator overloading and
other heresies :-)

And since it is running in a specific OS, windows
programming makes for quite a lot of pages. If you
use another OS however, the first part is (almost)
straight C.

jacob

Nov 14 '05
156 7754
Dan Pop wrote:
In <c0**********@s parta.btinterne t.com> Richard Heathfield
<do******@addre ss.co.uk.invali d> writes:
Dan Pop wrote:
OTOH, Acrobat Reader lets you copy/paste, generates excellent output
and is trivially easy to use.


Is the source code freely available, so that I can assure myself that the
program contains no malicious code?


On how much of the software you're currently using have you already
performed this check?


(a) Non sequitur. If the source is available then I can, if I wish, perform
this check. Whether I then choose to do so is entirely up to me.

(b) Even though it's a non sequitur, I'll answer it. I have performed this
check on /some/ of the software I use, but not all.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #51
Dan Pop wrote:
In <c0**********@t itan.btinternet .com> Richard Heathfield
<do******@addre ss.co.uk.invali d> writes:
jacob navia wrote:
But PDF is a widely used format,


Oh, I know, I know. That doesn't mean it necessarily /should/ be.


Name one document format with a public specification that should be
used instead, allowing for comparable quality of the printed output.
And explain why that format should be used instead of PDF.


Text works for me. No public spec needed; if there's anyone out there who
doesn't know what text is, I probably don't want to read their stuff
anyway.

As for the printed output, it looks pretty good from where I'm standing. If
your text printout quality is low, consider investing in a better printer.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #52
In <c0************ *@news.t-online.com> Martin Dickopp <ex************ ****@zero-based.org> writes:
Da*****@cern.c h (Dan Pop) writes:
In <c0*********@he rcules.btintern et.com> Richard Heathfield <do******@addre ss.co.uk.invali d> writes:
Mark McIntyre wrote:

BTW I bet you a groat you don't scan most programs for malicious code,
so your argument is spurious.

I disagree that the argument is spurious. It's true that I don't scan most
programs for malicious code; I don't have to, because - since they're Open
Source - lots of people have done this already,


How do you know it? If everyone reasons like you, no one is actually
doing it :-) ^^


For the record, I often read the source code of Free Software, which
disproves that /no one/ is doing it. :)


Do you know what "if" means in English?

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #53
Da*****@cern.ch (Dan Pop) writes:
In <c0************ *@news.t-online.com> Martin Dickopp <ex************ ****@zero-based.org> writes:
Da*****@cern. ch (Dan Pop) writes:
In <c0*********@he rcules.btintern et.com> Richard Heathfield <do******@addre ss.co.uk.invali d> writes:

Mark McIntyre wrote:

> BTW I bet you a groat you don't scan most programs for malicious code,
> so your argument is spurious.

I disagree that the argument is spurious. It's true that I don't scan most
programs for malicious code; I don't have to, because - since they're Open
Source - lots of people have done this already,

How do you know it? If everyone reasons like you, no one is actually
doing it :-) ^^


For the record, I often read the source code of Free Software, which
disproves that /no one/ is doing it. :)


Do you know what "if" means in English?


Suffice it to say that what I wrote contains no indication that I don't.
If you disagree, please be more elaborate.

Martin
Nov 14 '05 #54
In <c0**********@t itan.btinternet .com> Richard Heathfield <do******@addre ss.co.uk.invali d> writes:
Dan Pop wrote:
In <c0**********@s parta.btinterne t.com> Richard Heathfield
<do******@addre ss.co.uk.invali d> writes:
Dan Pop wrote:

OTOH, Acrobat Reader lets you copy/paste, generates excellent output
and is trivially easy to use.

Is the source code freely available, so that I can assure myself that the
program contains no malicious code?
On how much of the software you're currently using have you already
performed this check?


(a) Non sequitur. If the source is available then I can, if I wish, perform
this check. Whether I then choose to do so is entirely up to me.


Nope, it's not a non sequitur: if you don't perform such scans, the
ability to perform them becomes irrelevant.
(b) Even though it's a non sequitur, I'll answer it. I have performed this
check on /some/ of the software I use, but not all.


Therefore, you have no a priori reason to reject Acrobat Reader: you're
already using software you haven't scanned.

There is a nice paper by Ken Thompson, proving that such scans cannot
guarantee a lack of malicious code being included in the application,
unless you have assembled your own compiler. He had included a backdoor
in Unix via the C compiler and no matter how carefully you'd study the
source code of the C compiler, that you could use to rebuild the compiler
from the sources, you'd see nothing because there was nothing left in the
source code. The malicious code was inside the executable of the compiler
that was coming with the system and it would reproduce itself in the
binaries of the clean compiler you'd compile with that compiler.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #55
Dan Pop wrote:
In <c0**********@t itan.btinternet .com> Richard Heathfield
<do******@addre ss.co.uk.invali d> writes:
Dan Pop wrote:
In <c0**********@s parta.btinterne t.com> Richard Heathfield
<do******@addre ss.co.uk.invali d> writes:

Dan Pop wrote:

> OTOH, Acrobat Reader lets you copy/paste, generates excellent output
> and is trivially easy to use.

Is the source code freely available, so that I can assure myself that
the program contains no malicious code?

On how much of the software you're currently using have you already
performed this check?
(a) Non sequitur. If the source is available then I can, if I wish,
perform this check. Whether I then choose to do so is entirely up to me.


Nope, it's not a non sequitur: if you don't perform such scans, the
ability to perform them becomes irrelevant.
(b) Even though it's a non sequitur, I'll answer it. I have performed this
check on /some/ of the software I use, but not all.


Therefore, you have no a priori reason to reject Acrobat Reader:


Yes, I do.
you're
already using software you haven't scanned.
But I'm not using /Adobe/ software that I haven't scanned.
There is a nice paper by Ken Thompson,


I know. I don't have a problem trusting gcc.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #56
On Tue, 10 Feb 2004 18:55:07 +0000 (UTC), in comp.lang.c , Richard
Heathfield <do******@addre ss.co.uk.invali d> wrote:
Dan Pop wrote:
In <c0**********@t itan.btinternet .com> Richard Heathfield
<do******@addre ss.co.uk.invali d> writes:
jacob navia wrote:

But PDF is a widely used format,

Oh, I know, I know. That doesn't mean it necessarily /should/ be.
Name one document format with a public specification that should be
used instead, allowing for comparable quality of the printed output.
And explain why that format should be used instead of PDF.


Text works for me. No public spec needed; if there's anyone out there who
doesn't know what text is, I probably don't want to read their stuff
anyway.


Not trying to be difficult, but if you can define "text" then I'll feel
happier. Bearing in mind that at least one popular OS makes no distinction
between "text" and "binary" data. Hey, thats nearly topical.
As for the printed output, it looks pretty good from where I'm standing. If
your text printout quality is low, consider investing in a better printer.


I have a colour laser printer, and /still/ all my text docs come out in
crappy black 10pt courier typewriter font, circa 1950 IBM standard, just
the same as it comes out on my chain printer (tho admittedly the
chainprinter causes my neighbours to bang on the wall and call the police,
so I rarely fire it up except after very extensive p*ssups^wpartie s. I'm
not sure that expensive printers will improve that.

But we digress...
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.c om/ms3/bchambless0/welcome_to_clc. html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 14 '05 #57
Mark McIntyre wrote:
On Tue, 10 Feb 2004 18:55:07 +0000 (UTC), in comp.lang.c , Richard
Heathfield <do******@addre ss.co.uk.invali d> wrote:
Dan Pop wrote:
Name one document format with a public specification that should be
used instead, allowing for comparable quality of the printed output.
And explain why that format should be used instead of PDF.


Text works for me. No public spec needed; if there's anyone out there who
doesn't know what text is, I probably don't want to read their stuff
anyway.


Not trying to be difficult, but if you can define "text" then I'll feel
happier.


See 5.2.1 of C99 (Character sets).

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #58
In <c0**********@t itan.btinternet .com> Richard Heathfield <do******@addre ss.co.uk.invali d> writes:
Dan Pop wrote:
In <c0**********@t itan.btinternet .com> Richard Heathfield
<do******@addre ss.co.uk.invali d> writes:
jacob navia wrote:

But PDF is a widely used format,

Oh, I know, I know. That doesn't mean it necessarily /should/ be.


Name one document format with a public specification that should be
used instead, allowing for comparable quality of the printed output.
And explain why that format should be used instead of PDF.


Text works for me. No public spec needed; if there's anyone out there who
doesn't know what text is, I probably don't want to read their stuff
anyway.

As for the printed output, it looks pretty good from where I'm standing. If
your text printout quality is low, consider investing in a better printer.


Show us how you can use the plain text format to display a complex
mathematical formula or the picture of your cat (dog, whatever)
with a quality comparable to that obtained from a PDF document.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #59
In <c0************ *@news.t-online.com> Martin Dickopp <ex************ ****@zero-based.org> writes:
Da*****@cern.c h (Dan Pop) writes:
In <c0************ *@news.t-online.com> Martin Dickopp <ex************ ****@zero-based.org> writes:
Da*****@cern .ch (Dan Pop) writes:

In <c0*********@he rcules.btintern et.com> Richard Heathfield <do******@addre ss.co.uk.invali d> writes:

>Mark McIntyre wrote:
>
>> BTW I bet you a groat you don't scan most programs for malicious code,
>> so your argument is spurious.
>
>I disagree that the argument is spurious. It's true that I don't scan most
>programs for malicious code; I don't have to, because - since they're Open
>Source - lots of people have done this already,

How do you know it? If everyone reasons like you, no one is actually
doing it :-) ^^

For the record, I often read the source code of Free Software, which
disproves that /no one/ is doing it. :) ^^^^^

^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^
Do you know what "if" means in English?


Suffice it to say that what I wrote contains no indication that I don't.
If you disagree, please be more elaborate.


Reread the underlined text above and explain what it was supposed to mean.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #60

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

Similar topics

1
2936
by: Rhino | last post by:
Can anyone point me to a good free XSLT Tutorial online? I looked for some a few months ago and didn't find anything very good. I'm hoping some of the experts here can point me to a good XSLT tutorial..... -- Rhino --- rhino1 AT sympatico DOT ca "There are two ways of constructing a software design. One way is to make it
15
4246
by: binnyva | last post by:
Hello Everyone, I have just compleated a JavaScript tutorial and publishing the draft(or the beta version, as I like to call it) for review. This is not open to public yet. The Tutorial is avaliable at... http://www.geocities.com/binnyva/code/javascript/advanced_tutorial/ If any of you could spare the time, please have a look at my tutorial
18
1970
by: Xah Lee | last post by:
i've started to read python tutorial recently. http://python.org/doc/2.3.4/tut/tut.html Here are some quick critique: quick example: If the input string is too long, they don't truncate it, but return it unchanged; this will mess up your column lay-out but that's usually better than the alternative, which would be lying about a value. (If you really want truncation you can always add a slice operation, as in
0
1789
by: Joe Mayo | last post by:
I've recently updated the C# Tutorial at C# Station with a new addition, Lesson 17: Enums. The C# Tutorial may be found at http://www.csharp-station.com/Tutorial.aspx. Other updates include: 1. Downloadable source code. 2. All example programs run on-line as NTD apps. 3. A support forum for discussing the Tutorial.
10
3098
by: Safalra | last post by:
When a poster in a forum I frequent said they were beginning to learn HTML, I thought I should direct them to a good HTML tutorial so that they wouldn't start using <blink> and the like. Remembering that this group has discussed HTML tutorials several times in the past, I searched the Google Groups archives, but all I can find are tutorials unfortunately demonstrating Flavell's Law. Searching the internet, the only accurate tutorials for...
11
2945
by: Magnus Lycka | last post by:
While the official Python Tutorial has served its purpose well, keeping it up to date is hardly anyones top priority, and there are others who passionately create really good Python tutorials on the web. I think 'A Byte of Python' by Swaroop C H is a good beginners tutorial, and 'Dive Into Python' by Mark Pilgrim is a good tutorial for more experienced programmers.
7
2262
by: Turbo | last post by:
I have a written a detailed html tutorial here:- http://sandy007smarty.seo.iitm.ac.in/2006/09/26/html-tutorial/ I know there are a couple of html tutorials out there. But its a tutorial without links!! Everything in one page. Please leave a comment if you like it.
2
2114
by: sara | last post by:
Hi All, I learned C++ long time ago and now I want to review all of its details in a short time like a week. I wonder if there is a good tutorial you know which I can read for this purpose. Thanks a lot.
0
9969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9810
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
11203
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10896
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
10443
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
7999
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
5830
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...
1
4650
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
3257
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.