hex read scanf
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
				
			|||||||
#include <stdio.h>
 | 
					#include "hex_read_scanf.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int hex_scan()
 | 
					int hex_scan()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										9
									
								
								c-basic/hex_read_scanf.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								c-basic/hex_read_scanf.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					// hexutil.h
 | 
				
			||||||
 | 
					#ifndef HEXUTIL_H
 | 
				
			||||||
 | 
					#define HEXUTIL_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Prompts the user for a hexadecimal number and prints its decimal value.
 | 
				
			||||||
 | 
					// Returns 0 upon successful execution.
 | 
				
			||||||
 | 
					int hex_scan(void);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif // HEXUTIL_H
 | 
				
			||||||
@@ -1,9 +1,9 @@
 | 
				
			|||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include "scanf_example_two_numbers.h"
 | 
					#include "hex_read_scanf.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int main() {
 | 
					int main() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scan_two_numbers();
 | 
					  hex_scan();
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    return 0;
 | 
					    return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user