Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Fgetc (0.15 sec)

  1. src/cmd/cgo/internal/swig/testdata/stdio/main.go

    	}
    
    	// Open this file itself and verify that the first few characters are
    	// as expected.
    	f := Fopen("main.go", "r")
    	if f.Swigcptr() == 0 {
    		fatal("fopen failed")
    	}
    	if Fgetc(f) != '/' || Fgetc(f) != '/' || Fgetc(f) != ' ' || Fgetc(f) != 'C' {
    		fatal("read unexpected characters")
    	}
    	if Fclose(f) != 0 {
    		fatal("fclose failed")
    	}
    
    	println("OK")
    }
    
    func fatal(f string, args ...any) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 975 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/swig/testdata/stdio/main.swig

    	memcpy($1, $input.p, $input.n);
    	$1[$input.n] = '\0';
    %}
    %typemap(freearg) const char * %{
    	free($1);
    %}
    
    FILE *fopen(const char *name, const char *mode);
    int fclose(FILE *);
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 563 bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

            map.put("d", 1.4);
            final HogeDto hoge = new HogeDto();
            BeanUtil.copyMapToBean(map, hoge);
            assertThat(hoge.getA(), is("A"));
            assertThat(hoge.isB(), is(true));
            assertThat(hoge.getC(), is(3));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCopyBeanToBean() throws Exception {
            final SrcBean src = new SrcBean();
            src.aaa = "aaa";
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 34.5K bytes
    - Viewed (0)
Back to top