Search:

Type: Posts; User: MK27

Search: Search took 0.04 seconds.

  1. Replies
    22
    Views
    4,373

    Re: error-checking malloc, you can do this: ...

    Re: error-checking malloc, you can do this:


    void *ec_malloc (size_t bytes) {
    void *assign;
    assign = malloc(bytes);
    if (assign == NULL) {
    puts("OUT OF MEMORY!??!");
    ...
  2. Replies
    22
    Views
    4,373

    Yay cas! I had not noticed this, but it...

    Yay cas!

    I had not noticed this, but it certainly would constitute a "grave mistake" in the sense that it will work (since an int is at least the size of a pointer) but if these had been chars,...
  3. Replies
    22
    Views
    4,373

    Well, I don't want to mislead you -- my degree is...

    Well, I don't want to mislead you -- my degree is not in computing. But if I walked into a prof's office during his/her consultation hours with a question or whatever and received that kind of...
  4. Replies
    22
    Views
    4,373

    I have a university degree and your prof is 1) a...

    I have a university degree and your prof is 1) a jerk 2) a jerk, and 3) a jerk, and I would bet money if you ask other students or even other professors they will confirm that. Don't take a class...
Results 1 to 4 of 4