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
  Sending Float values...         


Author: swetha
Date: Dec 8, 2007 21:41

Hi,
I worte a RPC program for client and server, After computing
(which i already did)..i get a float value.Now i want this value to be
sent to the client .I know how to do with integer (By passing the
addreess using the pointers,but when i am doing the same here iam
getting errors.Can any 1 tell how to do that please.....
for example say i have the value in result variable ;which is
float....now how should i declare and send this to the client side....
no comments
  self destructing programs         


Author: kvt
Date: Dec 8, 2007 21:28

Hi,

One of my friend puzzled me to write a program which destructs itself.
i.e, by the time it stops execution, its executable file should be
deleted.

I tried a lot like
a) using " system() function to deleted the running program"
result: Access denied

b) googled for logic of other self destructing programs
result: not turned up

c) searched groups. They suggested using a .bat file, invoking the bat
file from currently executing one and through bat file deleting the
current executable after we have finished.
But in this case also, we are leaving residual (.bat file).
result: not a perfect one, only a remedy.

d) after system() function Access denial, i got a thought, as OS is
protecting the currently executing program, it is not possible to
perform anything explicitly on it. so what about taking a pointer in
the current program and filling the entire program space with garbage.
Show full article (1.14Kb)
3 Comments
  www.nikepopularshoes.com sell psp,Clothes,puma,wholesale,nike,air,mp4,ipod,glasses,psp,Clothes,nike shox,dunk         


Author: shoes9966
Date: Dec 8, 2007 21:18

www.nikepopularshoes.com wholesale nike shoes,nike shoes air force 1s
one,nike shoes air force 1s xxv 25th,nike shoes dunk,nike shoes air
jordan, nike shoes air jordans,nike shoes air dunks,Nike shox,Nike
shocks,Nike shox tl,Nike shox nz,Nike shox r4,Nike shox ride,Nike shox
turbo,shox monster, nike shoes air max, Nike shoes air max tn
plus,Nike shoes air max 360,Nike air rift.adidas shoes,puma
shoes,prada shoes,gucci shoes,bape shoes,red monkey jeans,children
shoes,bape hoodies,bbc hoodies,evisu hoodies,lrg hoodies,polo
hoodies,ed hardy hoodies,timberland shoes,gucci bags,chloe bags,juicy
bag,coach bag,fedi bag,chanel bag,red monkey jeans,bape jeans,evisu
jeans, bbc jeans,seven jeans,D&g jeans,antik jeans,lrg jeans,gunit
jeans,akademikes jeans,iv bag,nike shoes women shoes, nike shoes men...
Show full article (0.89Kb)
no comments
  www.nikepopularshoes.com sell psp,Clothes,puma,wholesale,nike,air,mp4,ipod,glasses,psp,Clothes,nike shox,dunk         


Author: shoes9966
Date: Dec 8, 2007 21:17

www.nikepopularshoes.com wholesale nike shoes,nike shoes air force 1s
one,nike shoes air force 1s xxv 25th,nike shoes dunk,nike shoes air
jordan, nike shoes air jordans,nike shoes air dunks,Nike shox,Nike
shocks,Nike shox tl,Nike shox nz,Nike shox r4,Nike shox ride,Nike shox
turbo,shox monster, nike shoes air max, Nike shoes air max tn
plus,Nike shoes air max 360,Nike air rift.adidas shoes,puma
shoes,prada shoes,gucci shoes,bape shoes,red monkey jeans,children
shoes,bape hoodies,bbc hoodies,evisu hoodies,lrg hoodies,polo
hoodies,ed hardy hoodies,timberland shoes,gucci bags,chloe bags,juicy
bag,coach bag,fedi bag,chanel bag,red monkey jeans,bape jeans,evisu
jeans, bbc jeans,seven jeans,D&g jeans,antik jeans,lrg jeans,gunit
jeans,akademikes jeans,iv bag,nike shoes women shoes, nike shoes men...
Show full article (0.89Kb)
no comments
  Islamic Manners (1): Sidq (Truthfulness         


Author: abdo911
Date: Dec 8, 2007 20:57

Allâh, Exalted is He says, "You who have faith! Have taqwâ of Allâh
and be with the truthful"; "...being true to Allâh would be better
for
them"; "... men and women who are truthful...Allâh has prepared for
them
forgiveness and an immense reward"; "Among the believers are those
who
have been true to the contract they made with Allâh. Some of them
have
fulfilled their pact by death and some are still waiting to do so,
not
having changed in any way at all. So that Allâh might recompense the
truthful for their sincerity..."
Truthfulness is the conformity of the outer with the inner, speech
with deed, and narrative with reality. [1]
Therefore truthfulness occurs in intention, speech and deed and not
just speech as many people may think. As such a person who informs of
something that is not in conformity to reality is not truthful, a
person who does a good deed intending to show off is not being
truthful, a hypocrite who shows faith but conceals disbelief is not ...
Show full article (1.56Kb)
no comments
  Trouble accessing data with pointer to structure         


Author: drhowarddrfine
Date: Dec 8, 2007 19:53

I'm playing around with data passed in a structure. In one function I
do this:

/* path is defined as char* path[10] in the struct */
struct request customer_request;
if(strcmp("order",customer_request->path[0])==0)
order(customer_request);

In the called 'order' routine, I do this:

void order(struct request *customer_request){
if(strcmp("menu",customer_request->path[1])==0)
menu(customer_request);

but I get a compiler error:
warning: passing arg 1 of `menu' from incompatible pointer type
2 Comments
  Re: increase in spams         


Author: Default User
Date: Dec 8, 2007 10:47

rakesh uv wrote:
> Hi Moderator,

Does this really seem like a moderated group to you?
> Is there any way to block the spam coming inside our
> group, i am feeling that day by day, the spams are increasing and its
> making the situation more worser.

The best solution is to subscribe to a good news service and use a good
newsreader (Google Groups is about the worst combination around). Then
you will pick up filtering at the service level and be able to further
filter at your level.

Brian
no comments
  what is 'foo.c'?         


Author: A2B
Date: Dec 8, 2007 08:10

In my book it refers to foo.c. I cannot understand what this is?
1 Comment
  Read-only outside translation unit         


Author: Tomás Ó hÉilidhe
Date: Dec 8, 2007 04:19

I have a translation unit which defines a global object:

BEGIN "yellow.c"

int i = 7;

END

I want this object to be accessible from other translation units, so I give
it external linkage. However I want it to be read-only in other translation
units. I didn't think it was too far-fetch to simply declare it as follows
in a header file:

BEGIN "yellow.h"

extern int const i;

END

Is this definitely not supported by C89? I realise I could write a function
which would return the variable's value, but I thought a solution like
above would be neater.

--
Tom
3 Comments
  assert must take int?         


Author: Tomás Ó hÉilidhe
Date: Dec 8, 2007 03:57

In C89, do we have to pass an int as an argument to assert? I've got code
at the moment that does an assertion on pointer, e.g.:

assert(p);

, but I'm wondering if I should change that to:

assert(0 != p);

--
Tom
10 Comments
1 2