Copy PORTC to PORTD?

Hey, guys!
I'm trying to nail down port manipulation. I've got a workable ten-segment tracer on pins 2-11..

void setup() {
  DDRD = B11111100;
  DDRB = B00111111;
}

int b[] = { 0, 0, 0, 0, 0, 0, 1, 2, 4, 8 };
int d[] = { 4, 8, 16, 32, 64, 128, 0, 0, 0, 0 };

void loop() {
  for ( int n = 0; n<9; n++ ) {
    PORTD = d[n];
    PORTB = b[n];
    delay (25);
  }
  for ( int n = 9; n>0; n-- ) {
    PORTD = d[n];
    PORTB = b[n];
    delay (25);
  }
}

...and now that I have output handled reasonably well, I'd like to understand input. I would like to access input through PORTC, and transfer it directly to PORTD as a monitor. The sensors I am using require the pullup resistors on pins 14-19 (analog 0-5). This is my straw man:

void setup() {
  DDRC = B00000000;
  DDRD = B11111100;

  PORTC = B11111100;
}

void loop() {
    PORTD = PORTC;
}

...which doesn't work. I'm sure that my method of turning on the pullup resistors is wrong. I've also tried digitalwrite on all the pins after setting them to input, but that doesn't work either. Does it complicate things that these are analog pins?

never mind... I was using PORTC instead of PINC to get data from the C port. It's working fine now.