comp.lang.c
  Home FAQ Contact Sign in
comp.lang.c only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
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
  FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO VBScript, SAP - ABAP         


Author: Dhanabal
Date: May 25, 2008 20:10

FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO
VBScript, SAP - ABAP visit ebooks.univdatabase.com
no comments
  jamba klingeltoene mda mid jamba klingeltoene jamba klingeltoene preiswert auf handy jamba klingeltoene fuer siemens jamba klingeltoene umsonst logos jamba klingeltoene umsonst fuer handy         


Author: popnfresh632
Date: May 25, 2008 15:17

jamba klingeltoene mda mid jamba klingeltoene jamba klingeltoene
preiswert auf handy jamba klingeltoene fuer siemens jamba klingeltoene
umsonst logos jamba klingeltoene umsonst fuer handy

+
+
+
+ + + JAMBA HANDY KLINGELTON + + + JAMBA HANDY KLINGELTON + + +
http://WWW.JAMBA-KLINGELTON.DE/
http://WWW.JAMBA-KLINGELTON.DE/
http://WWW.JAMBA-KLINGELTON.DE/
+
+
+ + + BILLIGER JAMBA KLINGELTON...
Show full article (2.55Kb)
no comments
  VLAs with threads         


Author: Aggelidis Nikos
Date: May 25, 2008 13:15

hi to all,

i have a question concerning threads and vlas.

It is a know fact that pthreads share the same address space. I thought
that this meant that whatever variable i had in main() before creating
a thread, i would be able to use in the thread-itself. Unfortunately
threads have different stacks and that means that any local variable of
main can't be used by threads.

So in order for a variable to be used inside a thread, i see 2 options.
1) pass the variable as an argument to the thread
2) have a global variable that anyone can modify

The problems begin when i decided that i wanted to use a c99 feature:
the variable length arrays {vla}. The problem is that i can't declare a
gloval vla {it isn't permitted by the language}. Also i can't have a vla
inside a structure.... so what can i do?

I don't know if the context of my problem is relevant but for what is worth:

i want to have a 2d vla and i want to be able to "alter" it through threads...

thanks for your time,
nicolas
7 Comments
  difference between a pointer array and a stack array?         


Author: Ahmad Humayun
Date: May 25, 2008 12:37

Whats the difference between:

char str1[] = "wxyz";
char* str2 = "abcd";

I can do this:
str2 = str1

but I can't do this:
str1 = str2

(isn't str1 technically a pointer?)

Thanks
10 Comments
  port         


Author: sam
Date: May 25, 2008 08:17

hi
what does validating a port means?
can i get a c program to validate a port
7 Comments
  Avoiding used uninitialized in this function warning         


Author: markryde
Date: May 25, 2008 04:47

Hello,

I am working on upgrading an existent project.

I have a method with this the following prototype:

void f2(struct myStruct **myStructArray)

Now, I need to call a method with the following prototype
whenever f2 is called:
void f1(struct myStruct *myStructElement)

Though f2 get an array, in fact it is **always** called with one
element.
This is a working assumption on which I can base my work.
(though in the beginning of this project it was meant to enable
calling this f2 with an array with more than one element).

What I tried is this:

#include

struct myStruct
{
int val;
};
Show full article (1.35Kb)
1 Comment