Thanks guys. I just came to the conclusion I should be freeing the memory in the calling function, but I thought I'd check.
Type: Posts; User: walkingbeard
Thanks guys. I just came to the conclusion I should be freeing the memory in the calling function, but I thought I'd check.
Hi,
I was just wondering about this function I wrote:
/*Reverses a string*/
char *strrev(char *in_string) {
char *out_string;
int in_char,
out_char;
Cheers! Those pesky buffers. :rolleyes:
Hi. Here's the code:
/* Jack White 090455775
EE Programming Fundamentals Lab 9
Question 3
*/
#include <stdio.h>
C How to Program by Deital is good, but extremely dense and much worse for it.
Output:
[ec09411@dil015 3_4]$ ./Lab3_4
Enter a 4-digit number: 6546
Your number is 6 5 4 6.
[ec09411@dil015 3_4]$
Here's my answer to my C course question. I'm proud, even though it's only small. It does what I think the original question is:
EE Programming Fundamentals Lab 3
Question 4
*/
#include...
Awesome guys. Thank you. That's one to be passed around.
Hi,
Please take a look at this. It's only basic, since I'm doing my foundations course in C at university.
When I run the compiled programme, I get the following output:
[ec09411@dil027...