Is there any need to free memory allocated by this variable to avoid memory leak problems. if so.. then how can we do this.
Such variable is a pointer. If it points to a heap-allocated buffer then such memory should be eventually released.
However it really depends on the context if clean-up is up to you or not.
Could you please provide more info about?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
What is you own guess? I told you yesterday that ListView_SetColumnOrderArray will SET that information. I have no idea how to GET it. Visual Studio comes with help files. But I understand you: Real men don't read manuals.
If you want to open the spreadsheet to modify it programmatically, I'd suggest using Automation. That opens the spreadsheet in Excel and then you modify it by asking Excel to perform functions on it. There are several[^] articles[^] on CodeProject[^] that cover the subject. Try reading and understanding some of those...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
Write a function to check that a given string is a valid IP address. An IP address is of the form a.b.c.d where a,b,c,d are numbers in the range 0-255 without a leading zero. You are not allowed to use any string methods like split, indexof, parseInt etc, in C language
2) I dont like 'Please give the correct ans' - people here give the best answer they know according to their experience & knowledge, and dont mislead/give deliberatly wrong answers, so I take offence to this
In C language there is nothing like IndexOF,ParseInt and splits..
you can use strstr to find '.' and atoi to convert strings to number
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
Yes, but it does not follow the requirements. inet_addr will accept any dot notation, so "4.003.002.0x10" will be valid. I think the purpose of the exercise is to lead gently to stuff like atoi(), format strings, and so on...
Characterize and compare the performance of file I/O by implementing reading and writing of files through the following three methods:
· I/O through system calls read and write
· Memory mapped I/O through mmap
· Buffered I/O through read and write
You should implement a program that can either read or write blocks of a given size from a large file. The user should be able to specify the I/O method to use for reading and writing. For example, writing blocks of 1K through system calls (the first method above) may be done as follows: