I have multiple threads accessing shared data. I want to put a lock on that code so that the clients access it one at a time. How should i do this?
Type: Posts; User: wasi.cjr
I have multiple threads accessing shared data. I want to put a lock on that code so that the clients access it one at a time. How should i do this?
I have a server that can handle only ONE client. The client gets authenticated, then the client can store information and perform a bunch of other stuff
Now, I have to make my server compatible to...
lol true but the string has unknown number of columns and i have to get rid of the space before and after the columns (only if the space exists)
but i have no idea where the coma occurs.. so how would i do it?
if i have a string of unkown length.
like: ".....name Bloor Danforth , stops 32, kilometers 26.3...."
I have to get rid of spaces before and after the coma ' , '.
The contents of the...
Thanks a lot!
isnt char *d[100]; a 2-D array?.. i thought this is a 2d array and i had to convert a 1D array to 2D array where ':' is the token
k this is the first time im using this..so take it easy..
The input is abcd:efgh:ijkl
expected output:
abcd
efgh
ijkl
output produced:
ijkl
In the loop, the elements in the 2d array, d has the right strings. but once it exits the loop, all the elements in d are the last string.. how should i resolve this?
#include<stdio.h>...