How to encrypt header files in C [closed] - c

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
We need to have a good way to encrypt our C source. We need the header files to be unreadable by the another one (Codevision or Winavr Compiler).
For example I Drived One GSM Module For Send And recive SMS ... But I need no anyone access to my source and only can use them .. Is there any solution to this problem?
How Can I Make a Compiled Header File ???

You can encrypt your source with any good encryption tool, of course.
But obviously you can't compile it anymore ...
But perhaps a library could help you.
You can build a library which contains your GSM stuff.
Then you and others can call the functions from the library, the only file you have to distribute, is the *.h file where the declarations are.

Related

Opening a video file and play in C language [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am creating a server/ client program in which client would request a video from server. Once it starts receiving the video packet, i am creating a video file and write into it.
My main question is after writing some frames, i have to open the video file and it has to play the video.
1) how to play a video file using C?
2) Is it possible to write on the same file and play the same file simultaneously??
C alone does not provide this functionality. You need to leverage an additional multimedia oriented library such as gstreamer and display it using a framework suitable to the environment you use, for example gtk under Linux be fine. Or use an external program and call it to play the video.
This question should point you in the right direction.

Need to write a program that takes an assembly-language program and produces the corresponding machine language [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am very new to programming and I need to write a program that takes an assembly-language program and produces the corresponding machine language.
I need to write the program in C
Does anyone know any good tutorials I can find to create this program?
What you would want to do is finding a datasheet which describes the different op codes for the assembly instructions you're writing. Try ISA "your processor name" - this might come up with something useful.
It probably will be hard and you will run into a lot of problems, but you'll probably learn something from it.

Need to write call stack in running program in C [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I need to print a call stack in log file in a running program (in C) as I need to check the flow,
I have to send traces to other environment and I can't debug, Is there any way to do it in C.
If the platform is linux (and I believe in OSX too), you could use backtrace and backtrace_symbols to achieve what you want.
As per the notes section of backtrace
The symbol names may be unavailable without the use of special linker
options. For systems using the GNU linker, it is necessary to use the
-rdynamic linker option. Note that names of "static" functions are not exposed, and won't be available in the backtrace.

Parse Linux static Libraries (.a) in C [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to know how to parse a linux static librarie (.a) to get content of each files.
Thank's to help me !
In addition to objdump mentioned, you can use nm to list the content of a dot-a file, both what is defined inside (as well as which file.c defined them, when not stripped), as well as extern (which needs to be satisfied by other libraries).

Md5 implementation in C language for POS [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Can any one tell me how to implement MD5 algorithm in a C program.I want a c Program which captures the given Password and converts its equivalent message digest and save. Actually i need this functionality for a POS Application development.
Here is a public domain implementation of MD5 in C: link.
You should avoid saving the message digest straight away.
For common passwords, you'll likely to find databases to directly map back to the password - just search for 5ebe2294ecd0e0f08eab7690d2a6ee69 with Google or your favorite search engine as an example.
Include a salt to protect against that.

Resources