DNA Alignment/src/NWalgo.c
void printNW(struct NWArray* myarray){
  int j = 0;
  int i = 0;
  for(j = 0; j < myarray->height; j++){
    for(i = 0; i < myarray->width; i++){
      printf("%4d\t", cell_value(getCellXY(myarray, i, j)));
    }
    printf("\n");
  }
}
/*******************************************************************************
*       void printNW(struct NWArray*)
*   Prints the Needleman Wunsch array over stdout
*   Input : struct NWArray* myarray    :   Pointer over NWArray that is to be
*                                          painted
*
*******************************************************************************/
void printNW(struct NWArray*)
Prints the Needleman Wunsch array over stdout
Input : struct NWArray* myarray    :   Pointer over NWArray that is to be
painted
void printNW ( struct NWArray * ) Prints the Needleman Wunsch array over stdout Input : struct NWArray * myarray : Pointer over NWArray that is to be painted
void printNW(struct NWArray* myarray){
  int j = 0;
  int i = 0;
  for(j = 0; j < myarray->height; j++){
    for(i = 0; i < myarray->width; i++){
      printf("%4d\t", cell_value(getCellXY(myarray, i, j)));
    }
    printf("\n");
  }
}
void printNW ( struct NWArray * myarray ) { int j = 0 ; int i = 0 ; for ( j = 0 ; j < myarray -> height ; j ++ ) { for ( i = 0 ; i < myarray -> width ; i ++ ) { printf ( " \t " , cell_value ( getCellXY ( myarray , i , j ) ) ) ; } printf ( " \n " ) ; } }
void printNW(struct NWArray*)
Prints the Needleman Wunsch array over stdout
Input : struct NWArray* myarray    :   Pointer over NWArray that is to be
painted
void printNW ( struct NWArray * ) Prints the Needleman Wunsch array over stdout Input : struct NWArray * myarray : Pointer over NWArray that is to be painted