comp.lang.c
  Home FAQ Contact Sign in
comp.lang.c only
 
Advanced search
December 2008
motuwethfrsasuw
1234567 49
891011121314 50
15161718192021 51
22232425262728 52
293031     1
2008
 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
  C language         


Author: ikcchowdhury
Date: Dec 26, 2008 10:39

Hi

I am new to programming and have no experience so can you please
recommend a good book for beginners.

Thanks

IKC_1994
1 Comment
  fifo algotithm         


Author: cerr
Date: Dec 26, 2008 07:17

Hi There,

I'm trying to write some kind of fifo algorithm.
I have a global pointer "char MyQueue[1024];" and try to append a new
string on the beginning by shifting the current content to the right.
I tried doing...
Show full article (1.20Kb)
13 Comments
  Ensure your success in SCJP,SCWCD,OCP,OCA, Oracle, Java exams @TechFaq360.com         


Author: techfaq360.com
Date: Dec 26, 2008 06:55

Ensure your success in SCJP,SCWCD,OCP,OCA, Oracle, Java exams
@TechFaq360.com
http://www.techfaq360.com
no comments
  www.iofferkicks.com china cheap wholesale nike shoes,air jordan shoes,air force one shoes.         


Author: www.iofferkicks.com
Date: Dec 26, 2008 06:31

Get Nike Shoes at Super Cheap Prices
Discount Nike air jordans (www.iofferkicks.com)
Discount Nike Air Max 90 Sneakers (www.iofferkicks.com)
Discount Nike Air Max 91 Supplier (www.iofferkicks.com)
Discount Nike Air Max 95 Shoes Supplier (www.iofferkicks.com)
Discount Nike Air Max 97 Trainers (www.iofferkicks.com)
Discount Nike Air Max 2003 Wholesale (www.iofferkicks.com)
Discount Nike Air Max 2004 Shoes Wholesale
(www.iofferkicks.com)
Discount Nike Air Max 2005 Shop (www.iofferkicks.com)
Discount Nike Air Max 2006 Shoes Shop (www.iofferkicks.com)
Discount Nike Air Max 360 Catalogs (www.iofferkicks.com)
Discount Nike Air Max Ltd Shoes Catalogs (www.iofferkicks.com)
Discount Nike Air Max Tn Men's Shoes (www.iofferkicks.com)
Discount Nike Air Max Tn 2 Women's Shoes (www.iofferkicks.com)
Discount Nike Air Max Tn 3 Customize (www.iofferkicks.com)
Discount Nike Air Max Tn 4 Shoes Customize
( www.iofferkicks.com)
Discount Nike Air Max Tn 6 Supply (www.iofferkicks.com)
Discount Nike Shox NZ Shoes Supply (www.iofferkicks.com) ...
Show full article (3.27Kb)
no comments
  Displaying enum symbol names in GDB         


Author: omkar pangarkar
Date: Dec 26, 2008 05:59

For a simple code as follows :

typedef enum {
apple,
banana,
grape
} fruit;

typedef unsigned short fruitkind;

when I have this in code :

fruitkind = apple;

and see the value through GDB while debugging, I get fruitkind = 0
(obviously). What if I want to print the symbol "apple" when I ask for
value of fruitkind. Is there some GDB trick/setting, to do so. This
will be very helpful with enums having large number of members. When
you have large number of predefined states, its represented with this
style and stored in shorts. These enum assigned variables (like
fruitkind) are used widely in code, making it difficult to understand
it when walking through a debugger. Is there any other way to achieve
this without using this style, so that its easy for debugging?
Show full article (0.93Kb)
3 Comments
  Re: Cosmetic Surgery Loans         


Author: Frithiof Jensen
Date: Dec 26, 2008 05:27

gmail.com> skrev i meddelelsen
news:583189b1-f8f0-4590-845f-dc63cdd6d434@d36g2000prf.googlegroups.com...
> Even if the loan seeker is carrying a bad credit history the loan is
> available.

Will there be TARP funding available to keep the nation looking pretty even
though we have to eat gruel?
no comments
  tr-alike character replace function         


Author: Mik
Date: Dec 26, 2008 03:16

Hi,

I need the functionality of Perl tr (or Unix tr command) in a C
function. I mean replacing each character of a list of characters with
the character in another counterpart list. For example:

char* str = "hello";
printf("original string: '%%s'\n", str);
tr(str, "ho", "jy");
printf("transliterated string: '%%s'\n", str);

Which must end up printing:

original string: 'hello'
transliterated string: 'jelly'

It would be great if it recognizes Perl regexp syntax like [A-Z], \d,
\s and so on, so calls like tr(str, "[eo]","-") make str = "h-ll-".

Does anybody know if there is a public library which implements this
functionality?. I've looked at glib but can't find something similar.
3 Comments
  fgets not doing as I expect.         


Author: Andrew McMeikan
Date: Dec 26, 2008 03:10

I wanted to limit how many chars I read in, but the code below instead of stopping at
7 chars will happily read 30 or 40 car lines and spit them out. Not what I expected.
Any pointers?

cya, Andrew...

#include

int main(void){
char line [100];

while (NULL!=fgets(line,8,stdin))
{
printf("%%s",line);
}

return 0;
}
10 Comments
  Re: pointer/linked List clarification         


Author: Peter
Date: Dec 26, 2008 02:24

"blargg" gishpuppy.com> wrote in message
news:blargg.h4g-50B3CE.08421223122008@sn-ip.vsrv-sjc.supernews.net...
> Chad wrote:
>> On Dec 22, 8:48 pm, blargg....@gishpuppy.com (blargg) wrote:
>>> Peter wrote:
>>>> The way I'm reading the following fragments is, The function call
>>>> load()
>>>> passes a pointer startPtr which I believe is to be the pointer to the
>>>> head
>>>> of the list " Is this correct".
>>>
>>> It actually passes a pointer to startPtr. Care to share with us what
>>> LISTNODEPTR is? I'm guessing it's something like
>>>
>>> typedef struct list_node* LISTNODEPTR;
>>>
>>> Seems to just obfuscate things.
>
> By obfuscation, I mean that the name "LISTNODEPTR" itself is unpleasant
> to read, suggests a macro, and is ultimately pointless since one doesn't ...
Show full article (2.06Kb)
no comments
  Funny Christmas wallpapers, theme & 15,999$/- per day         


Author: HAPPY NEW YEAR Funny Christmas wallpapers, theme Free Funny Christmas Wallpaper Software Downloads and earn 15,999$/-
Date: Dec 26, 2008 01:14

HAPPY NEW YEAR
Funny Christmas wallpapers, theme
Free Funny Christmas Wallpaper Software Downloads
and earn 15,999$/- and more,and many thing which you want
http://eromshaikh.googlepages.com/multilinesolutions
no comments
1 2 3 4 5 6 7 8 9