Search:

Type: Posts; User: Rhidian

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: offset

    by Rhidian
    Replies
    6
    Views
    2,444

    Best solution I can come up with is too strrchr...

    Best solution I can come up with is too strrchr then copy the what remains of the text file. If only the strch charecter is left then it is just before the EOF. Anyone have a better method?
  2. Thread: offset

    by Rhidian
    Replies
    6
    Views
    2,444

    Search

    I need to search a file for a certain characters and report were it is in the file. I need too test if the characers are the ones just before the EOF or not.
  3. Thread: offset

    by Rhidian
    Replies
    6
    Views
    2,444

    offset

    How can I find the max offset?




    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    #define MAXCHAR 2048 //number of characters to read from disk
  4. Thread: Eof

    by Rhidian
    Replies
    4
    Views
    1,233

    Thanx

    Thanx
  5. Thread: Eof

    by Rhidian
    Replies
    4
    Views
    1,233

    A jpeg EOF is FFD9 does c recognise marker or...

    A jpeg EOF is FFD9 does c recognise marker or does it's EOF happen because EOF is reached

    So if I added something after FFD9 would it be read by reading a file until EOF or would EOF be called on...
  6. Thread: Eof

    by Rhidian
    Replies
    4
    Views
    1,233

    Eof

    Does the EOF in binary mode read untill it gets to the file EOF or the real end of the file(REOF).

    EXAMPLE



    DATAEOFJUNKREOF
  7. Thread: Pass

    by Rhidian
    Replies
    8
    Views
    1,165

    Thank you for all your help

    Thank you for all your help
  8. Thread: Pass

    by Rhidian
    Replies
    8
    Views
    1,165

    Like this, the code still does not access...

    Like this, the code still does not access directories inside the other



    #include <unistd.h>
    #include <stdio.h>
    #include <dirent.h>
    #include <string.h>
    #include <sys/stat.h>
  9. Thread: Pass

    by Rhidian
    Replies
    8
    Views
    1,165

    would fopen (entry->d_name, "rb") work?

    would fopen (entry->d_name, "rb") work?
  10. Thread: Pass

    by Rhidian
    Replies
    8
    Views
    1,165

    I want to be able to tell another code chunk what...

    I want to be able to tell another code chunk what the file is and too perform stuff on it
  11. Thread: Pass

    by Rhidian
    Replies
    8
    Views
    1,165

    Pass

    I have the following code:



    void printdir( )
    {
    DIR *dp;
    struct dirent *entry;
    struct stat statbuf;
    int depth = 0;
  12. Thread: bmp header

    by Rhidian
    Replies
    7
    Views
    2,260

    A known stego program encrypts the headet of a...

    A known stego program encrypts the headet of a bmp file. I want to write an application that can detect this.

    I am creating a stego detection program.
  13. Thread: bmp header

    by Rhidian
    Replies
    7
    Views
    2,260

    bmp header

    Does anyone know how I could detect encryption in a bmp header?
  14. Thread: Integrating

    by Rhidian
    Replies
    1
    Views
    1,257

    Fault

    This code on running against any bitmap keeps generating a segmentation fault




    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <memory.h>
  15. Thread: Errors

    by Rhidian
    Replies
    10
    Views
    5,289

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <memory.h>

    typedef struct _bmp_header
    {
    char ID[2];
    int size;
    char res1[2], res2[2];
  16. Thread: Errors

    by Rhidian
    Replies
    10
    Views
    5,289

    All done logic does not seem to be working though.

    All done logic does not seem to be working though.
  17. Thread: Errors

    by Rhidian
    Replies
    10
    Views
    5,289

    Thank you, down too this many errors now ...

    Thank you, down too this many errors now



    SDetect.c: In function `main':
    SDetect.c:87: `BMPinfo' undeclared (first use in this function)
    SDetect.c:87: (Each undeclared identifier is reported...
  18. Thread: Errors

    by Rhidian
    Replies
    10
    Views
    5,289

    Errors

    SDetect.c: In function `main':
    SDetect.c:51: parse error before '{' token
    SDetect.c:57: case label not within a switch statement
    SDetect.c:60: case label not within a switch statement...
  19. Thread: Errors

    by Rhidian
    Replies
    10
    Views
    5,289

    Sorry about the standard of the last code this is...

    Sorry about the standard of the last code this is a cleaned up version still has some error in it though.



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <memory.h>
    ...
  20. Thread: Errors

    by Rhidian
    Replies
    10
    Views
    5,289

    Errors

    Been codeing all night can't seem to find the errors in this code. I expect they are obvious but can't see them with tired eyes. Using gcc for Cygwin as complier


    /* This is a program that...
  21. Thread: Ipc

    by Rhidian
    Replies
    2
    Views
    1,651

    #include #include ...

    #include <sys/types.h>
    #include <sys/ipc.h>
    #include <sys/sem.h>

    #include <errno.h>
    extern errno;

    #define SEMPERM 0600
  22. Thread: Ipc

    by Rhidian
    Replies
    2
    Views
    1,651

    Ipc

    I am having difficulty with my IPC producer consumer program.


    if ((shmid=shmget(KEY, sizeof(struct shseg), IPC_CREAT|0666|IPC_EXCL ==-1){
    if (errno==EEXIST) {
    }
    }

    ...
  23. Thread: Filestat

    by Rhidian
    Replies
    2
    Views
    2,314

    Filestat

    Haveing problem with this code, the program computes basic statistic on a single file.


    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <memory.h>
    #include <math.h>
    ...
  24. Thread: ls -l help

    by Rhidian
    Replies
    3
    Views
    1,179

    Thanx

    Thanx I think I will go with to directory's any chance of help in trying to display file size, permissions etc
  25. Thread: ls -l help

    by Rhidian
    Replies
    3
    Views
    1,179

    ls -l help

    I currently have this code:


    void printdir(char *dir, int depth)
    {
    DIR *dp;
    struct dirent *entry;
    struct stat statbuf;

    FILE *file; /* declare a FILE pointer */
Results 1 to 25 of 27
Page 1 of 2 1 2