jpdrolet Posted June 21, 2004 Report Share Posted June 21, 2004 Having a single format to read C constants from string e.g "123" as decimal "0123" as octal "0x123" as hexadecimal Quote Link to comment
Minh Pham Posted October 3, 2008 Report Share Posted October 3, 2008 QUOTE (jpdrolet @ Jun 21 2004, 10:31 PM) Having a single format to read C constants from string e.g"123" as decimal "0123" as octal "0x123" as hexadecimal You can probably write a small vi to do this kind of task in 2 mins. Good luck Quote Link to comment
jpdrolet Posted October 3, 2008 Author Report Share Posted October 3, 2008 QUOTE (Minh Pham @ Oct 1 2008, 07:30 PM) You can probably write a small vi to do this kind of task in 2 mins. Good luck I did but the idea is to have a format specifier integrated with "Scan From String" so a string containing such constants can be parsed with the rest of the elements (instead of indentify the string, isolate it and convert it separately). Quote Link to comment
Rolf Kalbermatter Posted October 8, 2008 Report Share Posted October 8, 2008 QUOTE (jpdrolet @ Oct 1 2008, 08:12 PM) I did but the idea is to have a format specifier integrated with "Scan From String" so a string containing such constants can be parsed with the rest of the elements (instead of indentify the string, isolate it and convert it separately). lol! In C you wouldn't even think about asking for something like that I wonder if Perl has it. From all those strange programming languages I would expect it to be the first that would come up with such a universal superduper format specifier. Rolf Kalbermatter Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.