Search:

Type: Posts; User: senegene

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,461

    Thanks guys for your reply, it has solved the...

    Thanks guys for your reply, it has solved the problem

    Happy new year to u all
  2. Replies
    2
    Views
    1,461

    Trailing characters after strncpy

    Hi Guys,
    i have searched but could not find any previouse solution.
    I'm coping n characters, but after sending the final to the
    printer, i get some trailing characters like c@xn after the
    true...
  3. Replies
    3
    Views
    1,125

    Well, what i wantt to do is, the record on file...

    Well, what i wantt to do is, the record on file is like this ->



    c12345my name my address;and so on; postcode\n
    i want a print out like so ->

    c 12345 my name my address;and so on;...
  4. Replies
    3
    Views
    1,125

    Can i make my programm any better?

    I have written a program that reads from a sequential text file
    then validates the record.
    the rec is for example
    c12345my name my address;and house number; 12345678
    the final print out is what...
  5. Replies
    1
    Views
    2,488

    I cant find what is wrong with this code

    This program is to read record from a file and then validate
    the 5th element str[5].
    From the valid check digits out of 45 recs only 5 is reported
    valid. I dont know what is wrong with this code
    ...
  6. Replies
    2
    Views
    859

    Thanks

    You have all been great, i haave solve the Q with your help.
    Thanks to all who replied

    cheers
  7. Replies
    2
    Views
    859

    Please Help-check digit

    :#include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #define MODULUS 11

    char input[20]="c4193978 my name my ";
    char name[20];
    int count;

    char chk_digit;
  8. Replies
    2
    Views
    4,361

    Modulus 11 check digit

    I'm validating the c_code i.e the 5th digit in a string, disregarding
    the 1st character.
    example of rec is c1234576 my name my address
    The check digit has been verified and are all o.k but when...
  9. Replies
    4
    Views
    1,062

    thanks master yoda and hammer, i have solved it...

    thanks master yoda and hammer, i have solved it
    with your help
    hihihi
    cheers
  10. Replies
    4
    Views
    1,062

    sorry i'm refering to string array. hope its not...

    sorry i'm refering to string array.
    hope its not too much bother 'Green yoda'
  11. Replies
    4
    Views
    1,062

    Reading few characters from string

    Hello all. pls dont shoot me down yet.
    I'm trying to read the first 5 char from a string array
    example name[20];
    the string is already stored;
    how do i read only the first 5 char say for...
Results 1 to 11 of 12