Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/20/04 13:39
Read: times


 
#65188 - RE: ASCII TO HEX QUESTION
Responding to: ???'s previous message
Keil 'C':

#include <stdio.h>
#include <string.h>

unsigned char loop;
char str1[]="$0#1";
char str2[sizeof(str1)*2-1];
char *ptr=str2;

for(loop=0;loop<strlen(str1);loop++)
{
ptr+=sprintf(ptr,"%02bX",str1[loop]);
}

List of 17 messages in thread
TopicAuthorDate
ASCII TO HEX QUESTION            01/01/70 00:00      
   RE: ASCII TO HEX QUESTION            01/01/70 00:00      
   RE: ASCII TO HEX QUESTION            01/01/70 00:00      
      RE: ASCII TO HEX QUESTION            01/01/70 00:00      
         RE: ASCII TO HEX QUESTION            01/01/70 00:00      
         RE: ASCII TO HEX QUESTION            01/01/70 00:00      
         RE: ASCII TO HEX QUESTION            01/01/70 00:00      
         You already have it!!!!            01/01/70 00:00      
            RE: You already have it!!!!            01/01/70 00:00      
               RE: why guess            01/01/70 00:00      
                  RE: why guess            01/01/70 00:00      
                     RE: why guess            01/01/70 00:00      
                        RE: why guess            01/01/70 00:00      
                     Speculation            01/01/70 00:00      
         RE: ASCII TO HEX QUESTION            01/01/70 00:00      
   Apply a little thought            01/01/70 00:00      
      RE: Apply a little thought            01/01/70 00:00      

Back to Subject List