> char buff[MAX_STRING_SIZE];
If I do that i have to change hundrets of lines of code,
even if the code it's very modular
I intentionatelly do it like that!
after this put this inside a loop
{
buff = update_string();
type[i]=buff;
}
will serve the purpose
You didn't understand me:
for *type[counter]=buf[i] inside a loop
and inside another one I increase the counter
But I can't add succesive values to *type[0] so I need some kind of
pointer arithmetics:
Check for the word here:
while( i < 100 )
{
read(dhandle, tbuf, 1);
i++;
header[i] = tbuf[0];
/*here!!!*/ //++(++(*type[indice])) = tbuf[0]; /*
atentie posibile erori obscure */
if (tbuf[0]=='#')
{
//printf("_found end_\n"); /* DEBUG ### */
/* new search for keywords */
int local = 0;
indice++;
while ( local < 200 )
{
read(dhandle, tbuf, 1);
if ( tbuf[0] == '~' )
break;
}
if ( /**/ == /**/ )
{ //printf("_keyword_start_"); /* DEBUG */
do
{
read(dhandle, tbuf, 1);
source[k] = tbuf[0];
k++;
}
while( /**/ != /**/ );
//printf("_curent_source_%s_", source); /* DEBUG
*/
/*source[k-2]='&';*/ /* tre sa fac ceva cu
bufferul ala prost */