Mail Archives: djgpp/1999/01/10/09:57:40
Message-ID: | <002c01be3c45$166e7420$94f9c6c3@johans-dator>
|
From: | "Johan Henriksson" <johan DOT he AT telia DOT com>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Re: question
|
Date: | Sun, 10 Jan 1999 03:57:04 +0100
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 4.72.3110.1
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
Reply-To: | djgpp AT delorie DOT com
|
from Johan Henriksson, Sweden HTTP://come.to/jhewok |
Primary mail: johan DOT he AT telia DOT com #UIN 12035895
Second: jhe75 AT hotmail DOT com Third: johan_he AT yahoo DOT com
Leadprogrammer and FX-specialist at Real software
http://come.to/real_software
*************************************************************************
-----Original Message-----
From: pjotr <pjotr AT wlink DOT net>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Date: Sunday, January 10, 1999 2:35 PM
Subject: question
>I have a question about C (or C++) in general.
>
>When writing code, is there like a maximum size of lines per function
>you should take into account? I just wrote a 200+ lines function and I
>was just wondering if maybe it's too large for just one function.
>
>I know it wouldn't make a difference at runtime, but as a C-writing
>etiquette, what would you suggest? Note that those 200+ lines DO
>include comments.
>
Unlike Qbasic and such languages, there is no codelimit in C. I have just
passed the 1500 rows limit _excluding_ comments and I have no problem. If
you get to much codes, you should put out some code in functions.
>Pjotr
>
>
- Raw text -