Search Results

Search: Posts Made By: beginner_99
8,955
Posted By RudiC
Slight modification of itkamaraj's fine proposal...
Slight modification of itkamaraj's fine proposal to yield the full required output:
echo "a=5; /* this is a comment */" | sed "s;.*\(/\*.*\*/\);\1;"
/* this is a comment */
8,955
Posted By itkamaraj
try this echo "a=5; /* this is a comment */"...
try this

echo "a=5; /* this is a comment */" | sed "s;.*/\*\(.*\)\*/;\1;"
Forum: Programming 08-10-2016
1,265
Posted By Don Cragun
I didn't say that writing a C compiler in shell...
I didn't say that writing a C compiler in shell was annoying; I said that shell is the wrong language to use to write a C compiler.

Of course, another option would be to write an emulator for the...
Forum: Programming 08-10-2016
1,265
Posted By Don Cragun
I fail to see how this thread is fundamentally...
I fail to see how this thread is fundamentally different from the 1st question in your first thread: How to extract operand size in bits of a C program?...
Forum: Programming 08-08-2016
1,623
Posted By Don Cragun
OK. That is a different question totally...
OK. That is a different question totally unrelated to the title of this thread. The highest bit set in a non-negative integer number for a number that will fit in a C signed long integer value can...
Forum: Programming 08-08-2016
1,623
Posted By Don Cragun
You don't find the number of bits in the result...
You don't find the number of bits in the result of adding two values in a C program in the shell; you find that number in your C program. And, the number of bytes in the result of an addition...
Showing results 1 to 6 of 6

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