Converting a Wide String to unsigned long long?

Hi there,
I am looking for a way to convert a string to unsigned long long on
Solaris. On AIX and Linux, there is wcstoull. However, I do not find
that in solaris. So, I plan to use swscanf ( str, L"%llu", &val).
However, running thru Rational Purify, each call to swscanf leaks 1
byte.
Anyone has a 3rd solution other than the two above? Or maybe there
is fix to the swscanf leak?
Thanks in advance,
Miranda

% man -s 3C strtoull

Similar Messages

  • Ora-01489: result of string concatenation is too long

    Hello Gurus,
    i have a typical problem
    i am constructing a query in FORM and writing SQLPLUS script into a .SQL file. file will contain final data like below..
    set linesize 90
    set pagesize 0
    set echo off
    set verify off
    set termout off
    set feedback off
    set trimspool on
    set escape '^'
    spool D:\10GAPPServerappln\xxx\TEMPREP\ADA39057.sql;
    set linesize 229
    select ' IQIS# ,Cust Complaint Short Txt ,CD Short Txt ' from dual;
    set linesize 129
    select a||','||b||','||c||d from table;
    spool off;
    exit;
    After this By using HOST command i will execute the above .sql script and will write the output to text file.
    But problem is when i have clob column in any one of concatenated columns in query (a or b or c) then i am getting the error "Ora-01489: result of string concatenation is too long".
    pls suggest me how to overcome this problem..

    sybrand_b wrote:
    Obviously the || operator is concatenating strings, your CLOB is implicitly converted to a VARCHAR2, which has a 4000 bytes limit.???
    From non-experts who did read documentation:
    CLOB || VARCHAR2 = CLOB:
    SQL> CREATE OR REPLACE
      2  VIEW V1
      3  AS SELECT TO_CLOB('A') || 'A' clob_concat_varchar2 FROM dual
      4  /
    View created.
    SQL> DESC V1
    Name                                      Null?    Type
    CLOB_CONCAT_VARCHAR2                               CLOB
    SQL> SY.

  • Should using unsigned long long be this difficult?

    So I have a number. Possibly a big number that I would like to use. When I do the following, valueToGet is fine (1252904880010) when it returns but when I step to currentTimeStamp the value is something like 18446744072483981194.
    I can only assume that maybe I am missing some basic understanding of how methods return this value.
    -(void)processTimestampReceived
    NSString* timeString = @"1252904880010";
    unsigned long long currentTimestamp = [self getUnsignedLongLong: timeString];
    NSLog(@"currentTimeStamp (converted from timeString): %qu", currentTimestamp);
    -(unsigned long long)getUnsignedLongLong:(NSString*)longString
    NSScanner* scanner = [NSScanner scannerWithString:longString];
    unsigned long long valueToGet;
    if([scanner scanLongLong:&valueToGet] == YES) {
    return valueToGet;
    return -1;

    That is so discouraging that code that SHOULD work actually does work for everyone but me. Here is the data after I changed the following code. I had to use scanHexLongLong to actually return an unsigned long long instead of just long long. Is it possible that maybe something is just stomping on that memory location somehow and giving me bad data? But consistently the same way? Seems odd.
    2009-09-14 02:36:37.325 TestApp[46744:20b] lVal=322333076619280
    2009-09-14 02:36:37.530 TestApp[46744:20b] currentTimeStamp (converted from timeString): 322333076619280
    Run using:
    [self processTimestampReceived];
    unsigned long long lVal = [self getUnsignedLongLong:@"1252904880010"];
    NSLog(@"lVal=%qu", lVal);
    -(void)processTimestampReceived
    NSString* timeString = @"1252904880010";
    unsigned long long currentTimestamp = [self getUnsignedLongLong: timeString];
    NSLog(@"currentTimeStamp (converted from timeString): %qu", currentTimestamp);
    -(unsigned long long)getUnsignedLongLong:(NSString*)longString
    NSScanner* scanner = [NSScanner scannerWithString:longString];
    unsigned long long valueToGet;
    if([scanner scanHexLongLong:&valueToGet] == YES) {
    return valueToGet;
    return -1;

  • Signature: FSUpdateOperationStatus(void const*, TCountedPtr TCFURLInfo const&, long long, long long, long long, long long, unsigned long). No support Docs on file for this problem. Multiple crashes on opening Firefax. Running OSX 10.6.4.

    Signature:
    FSUpdateOperationStatus(void const*, TCountedPtr<TCFURLInfo> const&, long long, long long, long long, long long, unsigned long)
    No Support Docs on File.
    Firefox crashes every time it is opened.
    UUID 38fc1438-492f-4ce3-91d4-5ef922101027
    Time 2010-10-27 11:19:32.620395
    Uptime 11
    Last Crash 110 seconds before submission
    Install Age 610295 seconds (1.0 weeks) since version was first installed.
    Product Firefox
    Version 3.6.11
    Build ID 20101012104758
    Branch 1.9.2
    OS Mac OS X
    OS Version 10.6.4 10F569
    CPU x86
    CPU Info GenuineIntel family 6 model 15 stepping 11
    Crash Reason EXC_BAD_ACCESS / KERN_PROTECTION_FAILURE
    Crash Address 0x8
    User Comments
    Processor Notes
    EMCheckCompatibility Fal

    Looking at the crash log it looks like AE might be crashing in:
    net.telestream.wmv.export 
    Can you try uinstalling Flip4Mac (or whatever you have installed from http://www.telestream.net/telestream-products/desktop-products.htm)? You may need to manually go deep into /System to remove them.
    --c

  • Read an excel file and convert to a 1-D array of long, 32-bit integer?

    My vi right now reads an column of numbers as a 1-D array, but I need to input the numbers manually, and for what I'm trying to do, there could be anywhere between 100 to 500 numbers to input. I want the vi to be able to read the excel file and use that column of numbers for the rest, which the data type is long (32-bit integer).
    I have an example vi that is able to get excel values, but the output data type is double (64-bit real).
    I need to either be able to convert double(64-bit real) data to long (32-bit integer), or find another way to get the values from the excel file.

    Just to expand on what GerdW is saying.  There are many programs that hold exclusive access to a file.  So if a file is opened in Excel, the LabVIEW cannot access the file.
    What is the exact error code?  Different error codes will point to different issues.
    Make sure the csv file is exactly where you think it is and LabVIEW is pointing to the right place.  (I'm just going through stupid things I have done)
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • My string URL is too long and my servlet don't work.

    I need to call servlet from my web page but it does not work because My string URL is too long (appear message in my web "server not found"), exists a way to solve this?

    It's good that you have a solution. But your solution suggests that your original problem was not that the URL was too long, since you are still using GET. Probably it was something else. But at least you have a solution.

  • Unexpected "result of the string concatenation is too long" error

    Hello,
    I am using Oracle Database 11.2.0.
    When querying my database with a common table expression which concatenates VARCHAR2 strings, I receive an ORA-01489 error although I'm doubting that I am concatenating more than 4000 characters.
    To be more precise, I have a table entity which basically stores XML elements including their parent element and their sibling position among its siblings. The CREATE statement for this table is listed below.
    CREATE TABLE Entity (
    ID NUMBER(10,0) NOT NULL PRIMARY KEY,
    Name VARCHAR2(100) NOT NULL,
    Parent NUMBER(10,0) REFERENCES Entity(ID),
    Sibling_Pos NUMBER(2,0) DEFAULT 0
    Now, I would like for all elements to be concatenated with their ancestor elements to a structure like this:
    "/root_element(sibling_pos)/.../ancestor_element(sibling_pos)/parent_element(sibling_pos)/current_element(sibling_pos)"
    (where root_element, ancestor_element, parent_element and current_element are just values from the name column of the entity table)
    In order to achieve this, I use a common table expression which concatenates the name and sibling_pos values as shown below:
    WITH entity_cte (lvl, id, path) AS (
    SELECT 1 AS lvl, id, '/' || name || '(0' || sibling_pos || ')' AS path
    FROM entity
    WHERE parent IS NULL
    UNION ALL (
    SELECT lvl + 1 AS lvl, e.id, entity_cte.path || '/' || e.name || '(' || cast(e.sibling_pos AS VARCHAR2(2)) || ')' AS path
    FROM entity_cte, entity e
    WHERE entity_cte.id = e.parent
    SELECT lvl, id, path
    FROM entity_cte e
    After inserting certain values, I get the ORA-01489 error, that the result of the string concatenation is too long. The maximum is referred to as being 4000 characters for VARCHAR2 in the oracle documentation and in various websites. Of course, it is clear to me by just using the common table expression like that, I could run into such an error. However, due to the structure of my XML documents, I doubted that the resulting strings would be more than 4000 characters long.
    So, I rearranged my query in order to count the characters to be concatenated instead of actually concatenating them. The query is stated below as well, the changes are marked bold:
    WITH entity_cte (lvl, id, path) AS (
    SELECT 1 AS lvl, id, length('/' || name ||  '(0' || sibling_pos || ')') AS path
    FROM entity
    WHERE parent IS NULL
    UNION ALL (
    SELECT lvl + 1 AS lvl, e.id, entity_cte.path + length('/' || e.name || '(' || cast(e.sibling_pos AS VARCHAR2(2)) || ')') AS path
    FROM entity_cte, entity e
    WHERE entity_cte.id = e.parent
    SELECT lvl, id, path
    FROM entity_cte e
    ORDER BY path DESC
    The result of the query gives me a maximum length of 319 characters.
    To be sure, I also checked the maximum level depth (indicated by the column named lvl in the common table expression), meaning the maximum number of elements in my path (the concatenated string). The result is 18. As I use VARCHAR2(100) for the name column and add 5 charcaters in each level, the maximum number of characters expected for 18 levels would be 1890.
    So, now I wonder is the ORA-01489 maybe raised for another reason? Or is there something else I am missing?
    Any help would be appreciated. Further suggestions to track down the error are more than welcome. Thanks in advance.

    Thanks for the hint, BluShadow.
    Still, I don't reach that limit of 1000 characters with my actual data (yet). I understand that if my data changes, I might run into that error with the given query. But I don't understand why this error is raised with the given data I have. The longest string in the column "name" is 32 characters long up to now. When I'm adding 5 characters on each level and I only have max 18 levels that should only result in max 2664 bytes.
    @odie_63
    The database characterset is: AL32UTF8. If I googled correctly, than it just confirms what BluShadow said, that one character is represented by max 4 byte.
    Regarding the sample data, the XML document that I am inserting and which causes the error comprises 1058 nodes. That means I have 1058 entries in my entity table. I think it would be no sense posting all of it here, but is there a way that I can attach a text file containing an insert script to this post?
    Some sample data from the entity table orderd by the length of the string in the name column are shown below.
    "ID"     "NAME"     "TYPE"     "PARENT"     "SIBLING_POS"
    90     "representedCustodianOrganization"     1     89     0
    109     "serviceProviderOrganization"     1     108     0
    58     "standardIndustryClassCode"     1     55     2
    186     "standardIndustryClassCode"     1     173     7
    150     "standardIndustryClassCode"     1     137     7
    106     "dischargeDispositionCode"     1     99     4
    35     "administrativeGenderCode"     1     29     3
    932     "substanceAdministration"     1     931     0
    950     "substanceAdministration"     1     949     0
    1043     "representedOrganization"     1     1041     1
    71     "representedOrganization"     1     61     6
    137     "representedOrganization"     1     128     5
    173     "representedOrganization"     1     163     6
    504     "substanceAdministration"     1     503     0
    223     "representedOrganization"     1     221     1
    252     "representedOrganization"     1     250     1
    272     "representedOrganization"     1     270     1
    477     "substanceAdministration"     1     476     0
    481     "manufacturedLabeledDrug"     1     480     0
    207     "representedOrganization"     1     205     1
    802     "specimenPlayingEntity"     1     801     0
    830     "specimenPlayingEntity"     1     829     0
    844     "specimenPlayingEntity"     1     843     0
    858     "specimenPlayingEntity"     1     857     0
    99     "encompassingEncounter"     1     98     0
    788     "specimenPlayingEntity"     1     787     0
    676     "specimenPlayingEntity"     1     675     0
    704     "specimenPlayingEntity"     1     703     0
    718     "specimenPlayingEntity"     1     717     0
    746     "specimenPlayingEntity"     1     745     0
    Any help or further suggestion are appreciated. Thank you.

  • How to find String associated with some long value.

    My requirement is to know the String associated with the long value, for ex 23423423 is having some value like 'skljflsjf'. Can any body findout soln for the same.
    Thanks
    ~ Chethangowda.

    My requirement is to know the String associatedwith
    the long value, for ex 23423423 is having somevalue
    like 'skljflsjf'. Can any body findout soln forthe
    same.
    Hum... I'm not 100% sure, but it seems the answeris:
    dgjldkgjfkljg
    Please, don't thank me before you confirm thething.
    Regards.Oooohhhh! That explains it! I guess I must've missed
    the part where he said he wants it translated to
    trollish. How stupid of me.You're absolutely not to blame... to be honest, if I had not read the OP 3-4 times carefully, I would not have found the solution.

  • WS6U2 (32-bit mode): long long bitfields are not allowed

    The C++ README for WS6U2 states:
    (in Sun Workshop 6 New Features)
    "The restriction on the size of a bitfield to 32 or less is removed. Bitfields can be any size."
    but if we use this code:
    // spam.cc begins:
    struct spam {
    ..unsigned long long a : 40;
    ..unsigned long long b : 20;
    spam empty_spam() { return spam(); }
    // ends
    [note: i've used "."'s because leading spaces seem to be ignored; and the "special tokens" url (goes to FAQ) doesn't go to a helpful page]
    and attempt to compile on a Solaris 2.6 machine:
    $ CC -c spam.cc
    "64-bit-fields.cc", line 2: Error: long long bit fields are not allowed.
    "64-bit-fields.cc", line 3: Error: long long bit fields are not allowed.
    2 Error(s) detected.
    $
    it even fails on Solaris 2.8, with CC -xtarget=ultra -xarch=v9a -c spam.cc
    if we change the "long long" to "long" it will compile on Solaris 2.8 (with -xtarget=ultra -xarch=v9a) and use 64-bit long's.
    it hardly seems that "bitfields can be of any size".

    Be a good citizen and provide the answer!
    I start a new shell with linux32 bash.
    --olaf                                                                                                                                                                                               

  • Synchronized players, longer longer vid to short vid

    synchronized players, longer longer vid to short vid
    I'm having problems with trying to apply a time from player1 to player2
    Any clues or solutions would be nice.
    mport javax.media.bean.playerbean.*;
    import javax.media. *;
    import java.awt.*;
    import javax.swing.*;
    import java.io.*;
    import java.awt.event.*;
    public class AudioFrame extends Frame implements ControllerListener
         private boolean MasterRealized = false;
         private boolean SlaveRealized = false;
         public Player P4 = null;
         public Player P3 = null;
         Component control;Component visual;
         public MediaLocator p,c;
         public static void main(String[] args)
               AudioFrame hhhh = new AudioFrame();
               hhhh.setSize(400,340);
               hhhh.setLocation(200,200);
               hhhh.setVisible(true);
         public AudioFrame()
                    setLayout(new BorderLayout());
                    try
                         p = new MediaLocator("file:///bb/narcotic thrust - i like it (1).mpg");
                         P4 = Manager.createRealizedPlayer(p);
                         c = new MediaLocator("file:///bb/Chemical Brothers - Out Of Control.mpg");
                         P3 = Manager.createRealizedPlayer(c);
                   catch(Exception e)
                    P4.addControllerListener(this);
                    P3.addControllerListener(this);
                    P4.realize();
                    P3.realize();
                    try
                       P3.setTimeBase(P4.getTimeBase());
                   catch (IncompatibleTimeBaseException ex){}
         public void controllerUpdate(ControllerEvent action)
              if (action instanceof RealizeCompleteEvent)
                   P4.prefetch();
                   P3.prefetch();
              else if (action instanceof PrefetchCompleteEvent)
                        if((visual = P3.getVisualComponent()) != null)
                         add("North",visual);
                     if((control = P4.getControlPanelComponent()) != null)
                        add("Center",control);
                     setLocation(200,200);
                        validate();
                       P4.start();
                       P3.start();
              else if (action instanceof EndOfMediaEvent)
                   P4.stop();
         }

    Just an update; last night I spent pver an hour on phone with Linksys support without any luck.  We went through everything and confirmed that all looks OK, but the units still won't sync together over the wireless network.  I went as fat as plugging one player (DMP100) into the wired network and then trying to sync - the one on the wired network came up fine, the one on wireless failed.
    One thing that support asked me to look at is an alternate way to look at the firmware release of the player - and update it!  If someone could try this and confirm it works (it doesn't on mine) I would appreciate it:
    Go to Cisco Media Player and let it detect your units.  For one of the player units displayed on the left hand side, [right-click] on the title bar for the unit and you should get a dropdown list.  Select [About] and you should see a new window with the firmware release as well as a button to update the firmware.  I get this for my Director (DMC250) but nothing for the players - just curious if something should pop up.
    Many thanks.
    Ross.

  • Problem with JTree converting Node to string

    I have a problem that I cannot slove with JTree. I have a DefaultMutalbeTreeNode and I need its parent and convert to string. I can get its parent OK but cannot convert it to string.
    thisnode.getParent().toString() won't work and gives an exception
    thisnode.getParent() works but how do I convert this to string to be used by a database.
    Thanks
    Peter Loo

    You are using the wrong method to convert it to a String array.
    Try replacing this line:
    String[] tabStr = (String[])strList.toArray();
    With this line:
    String[] tabStr = (String[])strList.toArray( new String[ 0 ] );
    That should work for you.

  • Need a function module to convert xstring to string in web dynpro applicati

    hi,
       need a function module to convert xstring to string in web dynpro application other than HR_KR_XSTRING_TO_STRING.
    Moderator message: please (re)search yourself first.
    Edited by: Thomas Zloch on Nov 17, 2010 5:31 PM

    Hi,
    Check the following link:
    FM to convert XString to String
    Regards,
    Bhaskar

  • Application Diagnostics takes long long time to generate output report

    Hello All
    Please give me suggestion how can I improve performance of Application Diagnostics. It takes long long time to generate output report for a single transaction, i.e. Invoice.
    Thanks
    Makshud

    Do you have the statistics collected up to date?
    Please make sure you have applied the latest patch as per these docs.
    E-Business Suite Diagnostics Installation Guide [ID 167000.1]
    E-Business Suite Diagnostic Tools FAQ and Troubleshooting Guide for Release 11i and R12 [ID 235307.1]
    If you still have any performance issues when running the tool, I would suggest you log a SR.
    Thanks,
    Hussein

  • Converting Datetime in String in map

    Hello all,
    I am reciving a message from a system A, in which I am receiving field DOB as datetime and I am sending same message to system B , problem is that system B not able to handle DOB at there end as datetime - I have checked at BizTalk side that DOB
    is going correct so issue is at system B side. now system B wants BizTalk system to send them DOB field as string.
    What could be the possible way's to do this ?
    1) We can change both schema System A schema and System B schema and map them is one way .
    2) Can we take datetime and convert it to string using some funtoid ? and send that string to system B ? How ?
    Is there other way for this ?
    Thanks,
    Nitin
    Thanks and Regards, Nitin.

    Hi Nitin,
    First find out how the destination system consumes the datatime value. Some system would consume the value in the datetime field as string. It could be the problem in the format of the datetime. Ask them about their expected datetime format. For example
    "2004-09-23T10:20:00.000-05:00" is the standard datetime format produced when you set a field as xssd:datetime. May be the destination system not able to handle this format.
    If the issue is in the datatype i.e. in the way client consume, the datatype of the destination schema matter:
    Then update the destination schema's to have string datetype. And simply map the value from the soruce's datetime field to destination schema's update string field. You don't need any scripting fuctiond to convert the data type. BizTalk's mapper would handle
    it.
    If the issue is in the date format  i.e. in the way client consume, the datatype of the destination schema doesn't matter, and if the actual problem is in the format:
    Then update the destination schema's to have string datetype. Use a scripting fuctiond as suggested by others and do the conversion in the script.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Help with Sample on Converting an XML string to a byte stream

    Hello All,<br /><br />I am sure this is something simple, but I am just not figuring it out right now.<br /><br />I am following the sample - "Converting an XML string to a byte stream" from the developer guide since I want to prepopulate just 1 field in my PDF form.<br /><br />How do I reference my form field within my servlet code properly??<br /><br />I have tried a few things now, my field is within a subform, so I thought it would be <root><subformName><fieldname>My data</fieldname></subformName></root>  I have also tried adding <page1> in there too.<br /><br />I am following everything else exactly as given in the sample code.<br /><br />I do have an embedded schema within the form and the field is bound.<br /><br />Thanks,<br />Jennifer

    Well, if you have a schema defined in the form, then the hierarchy of your data must match what is described in the schema. So, can't really tell you what it would look like, but just follow your schema.
    Chris
    Adobe Enterprise Developer Support

Maybe you are looking for

  • Photoshop cs2 and rosetta

    I can not find the box in "Photoshop CS2" in order to open in rosetta. In fact none of my apps info table seem to have the "open app in rosetta" box. I am really having trouble with Photoshop. I've uninstalled, repaired disk, reinstalled still get th

  • Problem Installing iTunes on Windows XP   -  Please Help!

    Hey guys, I'm not exactly the best with computers and i finally downloaded the setup for iTunes 9 after many failed attempts. I tried to open the setup file but nothing happened. So obviously i tried again, still nothing happened. It's not responding

  • Integrated planning Content and SEM-BPS Content

    Hi Experts Is there any integrated planning Business Content for CRM? Where do I find it? SEM-BPS has Business Content planning scenarios for CRM. Is this BC also available in BW-BPS now? Where do I find it? We use NW04s BI and CRM 5.0. Kind regards

  • Button Images are not shown

    Dear All, In one of our test instance, some button images are not shown, whereas some are. They are shown as grey button. I searched metalink, according to them patch 1238573 should be installed, which is already installed. What could be the reason?

  • Importing outline using the load utility

    Hi all, I have extracted my outline using the EPMA file generator and the file is a csv file. I'm trying to load it using the load utility and I'm getting this error "Unable to obtain dimension information and or perform a data load: Unrecognized col