c - Checking for null in a 2d array
问题 I am filling a 10 x 10 grid of characters from an input file. I need to check if the grid is a square (i.e, has N x N characters, where N <= 10) The input file is such: pitk olpe pkey tope When I print the grid in gdb, I get the following result: $1 = {"pitk\000\000\000\000\366h", "olpe\000\000\001\000\000", "pkey\000\000\000\000\000", "tope\000\000\000\000\000", "\000\344\241\367\377\177\000\000", <incomplete sequence \336>, "\000\377\377\177\000\000\037\355\336", <incomplete sequence \367>,