Search:

Type: Posts; User: tomas.ra

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    2,408

    It is GREAT, thank you very much Salem! :)

    It is GREAT, thank you very much Salem! :)
  2. Replies
    5
    Views
    2,408

    Could you tell me, please what I have study for...

    Could you tell me, please what I have study for to make this code from Salem with doCopy, true, false?
    Eg. on http://www.cprogramming.com/tutorial.html
    I do not know if doCopy is function or enum.....
  3. Replies
    5
    Views
    2,408

    It is very elegant solution :) . I do not know...

    It is very elegant solution :) .
    I do not know how to declare doCopy, true, false.
    Or which header file I must add. I am using now only <stdio.h> and <string.h> in this source.
    I am trying to...
  4. Replies
    5
    Views
    2,408

    Copy defined parts from text-file

    I need copy defined parts from input.txt file to new output.txt file.
    These parts started with text-string "start" and finished with text-string "stop".
    Eg. input.txt file:

    Output.txt file:

    I...
  5. Replies
    7
    Views
    2,048

    Thank you very much for your explanation and...

    Thank you very much for your explanation and help.
    I successfuly used clever solution from 'ssharish2005' with clear input buffer before 'gets'.
  6. Replies
    7
    Views
    2,048

    printf+gets inside of code

    I need to read two strings from stdin (keyboard) and save them to two char-variables.
    I do not know why when I use "gets" on the beginning of the code it is function OK:

    printf("Enter Date Time...
  7. Replies
    8
    Views
    1,659

    In text-file A1 in Hex stopped fgets

    Thank you very much Salem, you are so kind that you have a time to help others!! and you are so clever with C programming!
    Your idea is the best and function perfectly!

    I cannot find reason why...
  8. Replies
    8
    Views
    1,659

    Thank you very much for example and for your...

    Thank you very much for example and for your time.
    Problem was really in error in my code and not problem with platform (XP & HT) as I thought.

    In function "fgets(line,80,fr)" I use real integrer...
  9. Replies
    8
    Views
    1,659

    Compile for Pentium HT & XP sp2

    /* pok1.exe */
    #include <stdio.h>
    #include <string.h>
    int main()
    {
    FILE *fr;
    char file[14]="a1.txt", line[81], COM[6]="COM15";
    if ((fr = fopen("file", "r")) != NULL);
    ...
  10. Replies
    8
    Views
    1,659

    Compile for Pentium HT

    Is it possible to compile basic C-sources for to execute on PC with CPU Pentium HT with OS WinXP? (and on servers with more CPU's).

    The same source on PIII 233MHz with OS Win95 running and on PIV...
  11. Replies
    5
    Views
    3,521

    Thank you for your time and your help. It must...

    Thank you for your time and your help.
    It must be probably solved with 2 char variables.
    I used:
    scanf("%6s", str10); /*put string to variable str10*/
    strcpy(str6, str10); /*copy original string...
  12. Replies
    5
    Views
    3,521

    Join 2 strings inside 'fopen'?

    I cannot find if it is possible to join 2 strings for to use inside in function 'fopen'.
    I have one string variable eg. 'char name[9] = filename' with name of file without extension.
    I need add...
  13. Replies
    2
    Views
    1,272

    Thank you very much !! :) It is function :)

    Thank you very much !! :)
    It is function :)
  14. Replies
    2
    Views
    1,272

    Text to Binary file

    Input file is ASCII text file (*fr). Each double-seguential-text-characters are one Hexa-number:
    A0FF3046F0 etc..
    A0 = 0xA0, FF = 0xFF, etc.
    I need to write 0xA0 0xFF to new binary file (*fw). It...
Results 1 to 14 of 14