Search Results

Search: Posts Made By: Sandeep
40,639
Posted By Chubler_XL
Ill try and explain this first: ...
Ill try and explain this first:

sprintf("%-*s", t-f+1, v) substr(s,t+1)
s=string
f=from
t=to
v=New value

t-f+1 = length of new string

sprintf will left justify New value to width of...
40,639
Posted By mirni
That's an awesome solution. I will try to analyze...
That's an awesome solution. I will try to analyze it, Chubler please correct if I mess up along the way ;)
Let's look at the sprintf call:
sprintf("%-*s", t-f+1, v)
The format flags of sprintf...
Showing results 1 to 2 of 2

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