Hacker Newsnew | past | comments | ask | show | jobs | submit | licorna's commentslogin

You can think of your grid array as a contiguous piece of memory. I would do:

  bzero(grid, sizeof(int) * COLS);
  bzero(grid + COLS * (ROWS - 1), sizeof(int) * COLS);

  for (int i=1; i < ROWS-1; i++) {
    *(grid + (i * COLS)) = 0;  /* set left col to 0 */
    *(grid + (i * COLS) + COLS - 1) = 0;  /* set right col to 0 */
  }


Personal Email: Google Inbox (web)

Work Email: Google Apps Gmail (web)

I used Sparrow in the past (https://en.wikipedia.org/wiki/Sparrow_(email_client)) for a few months until they were acquired by Google. Now some of the features they had were implemented in Gmail and Google Inbox.


Edit with Sublime, then refresh page? I think that's "Web developer & designer".


I'm not sure what you're implying with this comment. Are you saying non-designers don't refresh pages?


No, I'm not.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: