Search Results

Search: Posts Made By: breezevinay
Forum: Programming 06-19-2014
8,835
Posted By breezevinay
Thanksfor your suggestion . What about allocating...
Thanksfor your suggestion . What about allocating memory for the linked list .
Forum: Programming 06-19-2014
8,835
Posted By breezevinay
For me whole linked list has to be copied . ...
For me whole linked list has to be copied .

Yes for third point ,
We need to allocate different chunks of memory.

Additional information :

Actually my problem is the variable iter in the...
Forum: Programming 06-19-2014
8,835
Posted By breezevinay
Deep copy of structure in C
Hi ,

I have a scenario where i need to copy the iter to another local variable , where iter is of type MCC_T_SYS_ADDRINFO *iter .


struct addrinfo {
int ai_flags;
int ...
3,819
Posted By breezevinay
Thanks a lot Don Cragun . It is working ..
Thanks a lot Don Cragun . It is working ..
3,819
Posted By breezevinay
Actually i wont be having modified file , i ...
Actually i wont be having modified file , i having shown the diff to explain my requirement . Actually we will be having only original file which gets generated while compiling a make file , so in...
3,819
Posted By breezevinay
sed and awk usage to grep a pattern 1 and with reference to this grep a pattern 2 and pattern 3
Hi ,

I have a file where i have modifed certain things compared to original file . The difference of the original file and modified file is as follows.

[root@ossvm24 mir_common]# diff...
3,192
Posted By breezevinay
Here Actuall i have , list_of_entries=$1 ...
Here Actuall i have ,

list_of_entries=$1

numb_of_tables=`number_of_tables "$PID_LIST"`

number_of_tables ()
{
if [ `uname` = "Linux" ]
then
alias echo="echo -e"
fi
MAX_ENTRIES=1024
...
3,192
Posted By breezevinay
i have tried this . ...
i have tried this .

nb_of_tables=$(($((nb_of_entries/MAX_ENTRIES)) + 1))

and

nb_of_tables=\`expr `expr $nb_of_entries / $MAX_ENTRIES` + 1 \`


but as i told both works fine . only...
3,192
Posted By breezevinay
"Syntax Error sometimes due to corruption of variable value "
Hi ,

I have script as follows ,

#!/usr/bin/ksh -x

if [ `uname` = "Linux" ]
then
alias echo="echo -e"
fi
MAX_ENTRIES=1024

nb_of_entries=`echo "$list_of_entries" | wc -w`
# Set number...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 03:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy