2: #include <petscsys.h> 4: int main(int argc,char **argv) 5: { 6: char shorturl[64]; 8: PetscInitialize(&argc,&argv,NULL,NULL); 9: PetscURLShorten("http://www.google.com",shorturl,64); 10: PetscPrintf(PETSC_COMM_SELF,"Long url %s short url %s\n","http://www.google.com",shorturl); 11: PetscFinalize(); 12: return 0; 13: } 15: /*TEST 17: build: 18: requires: ssl 20: test: 22: TEST*/