No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
Re: Believe those who seek the truth. Doubt those who find it. -- Andre Gide | |
Hi all The string_in function below is intended to take two string pointers as arguments and if the first is contained in the second, return the address at which the contained string begins. [CODE=C]#include <stdio.h> #include <string.h> #define TEST "This ain't a drill" char * string_in (char * str1, char … | |
Re: [QUOTE=pete212;571935] (decimal % 16) = 1s column (decimal / 16) = 16s column ((decimal / 16) / 16) = 256s column (and so on etc) [/QUOTE] You should use the mod operator, and then apply your code, at each iteration: your loop should repeatedly replace 'decimal' by 'decimal/16'. | |
Hello, C newbie here... below is a driver for a pretty simple function which is supposed to read in n chars from input and store in a char array. [CODE=C]#include <stdio.h> #define SIZE 81 void get_str (char * array, int n) ; int main (void) { char instr [SIZE] ; … | |
Yep, Nessie as in the monster...;) Name: Geoff Nickname: Nessie, Munter Height: 171cm Weight: 80kg Hair: Not much left...but what's there is brown... Eyes: Blue Location: Wellington, NZ Age: 33 Hobbies: Playing with my two daughters, gaming, guitar, fiddlin' about wif computers, learning Linux, C, Python, Ruby Relationship Status: married … |
The End.