maybe someone can help me, I am writting a command line interface for an embedded device... kind of like a user shell, it just reads user input parses it, and spits back some output.
here is my...
Type: Posts; User: GreyMattr
maybe someone can help me, I am writting a command line interface for an embedded device... kind of like a user shell, it just reads user input parses it, and spits back some output.
here is my...
thanks allot...
worked like a charm...
I could send you some of my code but I'm not sure you'd know how to use it at this point...
here are two awesome pages to get you started with TCP/IP socket network programming...
windows...
does anyone know how I can include the current build date as a variable in my code???
I'd like to use it as a somewhat dirty revision numbering system.
thanks
Matt
It is for an embedded system that will run on a 186 processor...
the OS is MicroC/OS
uCOS
G
I am trying to put together some code for an rs232 serial / tty driver, does anyone know where I can find some help on-line?
thanks..
G
I know most windows socket code online uses makeword for the WSA startup function,
but you should be able to stuff a hex value in there as well.
<hr>
#include <stdio.h>
#include <winsock.h> ...
my .vimrc file is attached, it does C syntax highlighting.
~GM
So this doesn't look like your code too much but I think it might work just as well.
int magic[25][25];
memset( magic, 0, sizeof(magic));
or
just going off the top of my head, but I'm always game for a better solution...
thanx.
~GM
I'm not %100 sure but I think I know this one....
your do-while loop will never exit because you are breaking when value == "x"...
right ???
if I look at your code value looks like a Ten...
I think you need to be more specific...
I can think of ways to use a binary tree to do this for searching functions, but I think it would be unwise of me to recommend a solution without knowing...
the fprintf is a good option. If you prefer to work with file handles instead of file streams ( pipe info, write to sockets, or serial ports ) though, you can write an fdprintf function like this.
...
I agree just test the value of ch...
something like this should work groovy..
while( read(file, &ch, 1) > 0 ){
if( ch == EOF ){
// do nothing
}
if( ( ch > 31) && ( ch < 127 )){ // ...
I'm not sure but you may want to try something like this
void convert( char ch)
{
int i;
for(i=0;i<8;i++){
if( ch & (1 << i)){
printf("1");
}
else{
if you use Linux, you have to either be somewhat familiar with VI, Vim, or Emacs. Vim is my favorite, and can be totally customized as well as Emacs, but customization is like learning a hole new...
I like the idea above, but if you really wanted to make it good you'd create 3 functions...
get_line( int filed );
count_words( char *line );
get_word( char *line, int wordnumber);
then you...
change these 3 lines
puts(name[i+1]);
printf("Password: ");
puts(name[i+3]);
to
puts(temp[i+1]);
printf("Password: ");
I guess I don't completely understand your problem.
if you want to make your code portable on all platforms, Unix, Linux, Win, Dos, you should be as ansi C compatible as possible ( just a coding...