Search   Feed   Browse   Add
Feed items 1 - 2 of 2 for August 2006

MGBlog

A useless rant...

C equivalent of VBs Left function - August 12, 2006

It really bugs me that C does not have an equivalent of VBs Left function. I know I could be using text.Substring(0,length) but this has the rather annoying feature of throwing an exception if the string is shorter than the length parameter. In 99.999999% of cases what I actually want it to do is return as much as it can instead.Anyway here is my equivalent:public static string Left(string text, int length)    if (length         throw..
http://www.mgbrown.com/PermaLink68.aspx

Yahoo Search API Wrapper now under BSD Licence - August 12, 2006

I have decided to re-release my C and VB.Net wrappers for the Yahoo API under the BSD licence. This was prompted by Yahoos decision to include the code with their other language examples. By changing the licence it is now inline with Yahoos own licence.
http://www.mgbrown.com/PermaLink67.aspx
Available Archives
- January (1 item)
- March (2 items)
- August (2 items)
- September (1 item)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact