comp.lang.c
  Home FAQ Contact Sign in
comp.lang.c only
 
Advanced search
December 2007
motuwethfrsasuw
     12 48
3456789 49
10111213141516 50
17181920212223 51
24252627282930 52
31       1
2007
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.c Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Need advice on selecting a development environment         


Author: Ramon F Herrera
Date: Dec 23, 2007 23:01

My goal is to study (in the RMS sense) and familiarize myself with
some OSS code, until I reach the point at which I can make non-trivial
modifications to it. The class of applications I have in mind are
almost always written in C and run on Unixes. Historically, I have
used a terminal emulator, vi, and gcc/gdb for this type of project,
but would like to become more productive and take advantage of the
facilities provided by an IDE.

Here's the catch: I would like my front end environment (IDE) to run
on Windows, while the target code, debugger, etc. run on Unix. I
simply won't carry a Linux laptop around, although that day is
approaching by becoming feasible. I will not use remote X Windows,
either.

What I would like to do is take a directory filled with source code,
copy it to my Windows PC and use some IDE to manipulate the code.
These are my candidate IDEs:

- Visual C/C++
- Eclipse with the C++ development plugin
- NetBeans with the C++ development plugin
Show full article (1.48Kb)
22 Comments
  Difference between while and do while         


Author: Logan Lee
Date: Dec 23, 2007 22:28

Hi. What's the difference between while and do while?
8 Comments
  It was just a memory aid when reading C code         


Author: Logan Lee
Date: Dec 23, 2007 21:32

BACKGROUND READING:
http://www.geocities.com/logan.lee30/a_crude_method_of_static_code_analysis.html
http://www.geocities.com/logan.lee30/A_method_of_static_code_analysis.html

Like this:

CODE:
#include "sort.h"
40
41
#ifndef lint
42
__RCSID("$NetBSD: append.c,v 1.10 2001/02/19 20:50:17 jdolecek Exp $");
43
__SCCSID("@(#)append.c 8.1 (Berkeley) 6/6/93");
44
#endif /* not lint */
45
46
#include...
Show full article (4.81Kb)
2 Comments
  Question regarding scope and lifetime of variable         


Author: somenath
Date: Dec 23, 2007 21:26

Hi All ,

I have one question regarding scope and lifetime of variable.

#include

int main(int argc, char *argv[])
{
int *intp = NULL;
char *sptr = NULL;
{
int i =5;
char *s = "hello";
intp = &i;

sptr = s;

}
printf("value of i = %%d\n",*intp);
printf("value of sptr = %%s \n",sptr);

return 0;
}
Out put of the program
Show full article (0.75Kb)
5 Comments
  Novo formato de perguntas da prova de certificação PMP comentadas         


Author: Sergio Laranja
Date: Dec 23, 2007 21:11

Novo formato de perguntas da prova de certificação PMP comentadas
http://sergiolaranja.blogspot.com/
no comments
  lvalue required as increment operand         


Author: Roman Mashak
Date: Dec 23, 2007 20:41

Hello,

I'm porting code, previously compiled by IAR compiler, for ARM-gcc compiler.
This snippet results in error, posted in subject:

/*
* copies a structure in a buffer
* pSource Data to copy
* pDest Buffer in which to copy the data
*/
extern inline void copy(void *pSource, void *pDest, unsigned int dLength)
{
unsigned int dI;

for (dI = 0; dI < dLength; dI++) {

*((char *) pDest) = *((char *) pSource);
((char *) pDest)++; /* error */
((char *) pSource)++; /* error */
}
}
Show full article (0.78Kb)
9 Comments
  I've retyped this and stored in URL so look if you want         


Author: Logan Lee
Date: Dec 23, 2007 18:24

Mon, 24 Dec 2007 01:39:14 +0000에, Logan Lee ģ¼ģŠµė‹ˆė‹¤:
> This is a method I have devised.
>
> Not really organized but
> http://www.geocities.com/logan.lee30/Definitions_and_examples.pdf.
>
> Definitions
>
> I=if; EI=else if; E=else
>
> (I) is one of I...
Show full article (1.12Kb)
1 Comment
  Sorry but 'F' stands for 'for'         


Author: Logan Lee
Date: Dec 23, 2007 18:07

Mon, 24 Dec 2007 01:39:14 +0000에, Logan Lee ģ¼ģŠµė‹ˆė‹¤:
> This is a method I have devised.
>
> Not really organized but
> http://www.geocities.com/logan.lee30/Definitions_and_examples.pdf.
>
> Definitions
>
> I=if; EI=else if; E=else
>
> (I) is one of I...
Show full article (1.04Kb)
no comments
  Re: typedef function with void parameters         


Author: David Thompson
Date: Dec 23, 2007 16:57

On Thu, 13 Dec 2007 15:24:38 +0000, Ben Bacarisse
wrote:
> William Xu gmail.com> writes:
>> | int foo(char *p){}
>> | int bar(int *p){}
>> |
>> | typedef int (*FUNC)(void *);
>> |
>> | FUNC f1 = foo, f2 = bar;
>> So, this is not allowed?
>
> Allowed is vague. It is a constraint violation and thus requires a
> diagnostic (but that could be "I will convert these function pointers
> for you" or it might be "Yuck! -- compilation halted").
>
Right. Although I am a bit surprised that the OP's version of gcc
defaults the diagnostic to an error; mine make it a warning.
Show full article (1.48Kb)
no comments
  Making C better (by borrowing from C++)         


Author: Masood
Date: Dec 23, 2007 07:29

I know that this topic may inflame the "C language Taleban", but is
there any prospect of some of the neat features of C++ getting
incorporated in C? No I am not talking out the OO stuff. I am talking
about the non-OO stuff, that seems to be handled much more elegantly in
C++, as compared to C. For example new & delete, references, consts,
declaring variables just before use etc.

I am asking this question with a vested interest. I would really like
to use these features in my C programs.

Masood
244 Comments
1 2 3 4 5 6 7 8 9